from pathlib import Path script = Path(__file__).resolve().with_name('build_pcd50_fit_concept.py') exec(compile(script.read_text(encoding='utf-8'), str(script), 'exec'), {'__name__':'__main__', '__file__':str(script)})