You can add to the system-path at runtime:
import sys sys.path.insert(0, 'path/to/your/py_file') import py_file
This is by far the easiest way to do it.
2.1m questions
2.1m answers
60 comments
57.0k users