import sys from pathlib import Path sys.path = [str(Path(__file__).parent)] + sys.path