Import python module NOT on path
One way is to simply amend your path: import sys sys.path.append(‘C:/full/path’) from foo import util,bar Note that this requires foo to be a python package, i.e. contain a __init__.py file. If you don’t want to modify sys.path, you can also modify the PYTHONPATH environment variable or install the module on your system. Beware that this … Read more