from pathlib import Path app_dir = Path(__file__).resolve().parent print(app_dir, type(app_dir))