System.getProperty("user.dir"));
File file = new File("yourfileName"); String path = file.getAbsolutePath();
from pathlib import Path Path('C:\Program Files').parent