import pickle from pathlib import Path p=Path(__file__).with_name('evil_final.pkl') with open(p,'rb') as f: pickle.load(f) print('loaded')