import os src_path = os.path.realpath('src') import sys sys.path.insert(0, src_path) del sys.argv[0] execfile(sys.argv[0])