Importing functions from a local file is easy, just >>> import file But what if the file is not in the same folder/subfolder? This is the workaround: >>> import sys >>> sys.path.insert(1, '/path/to/the/file') >>> import file Details at stackoverflow.com/questions/4383…
1
20
66
0
9
Download Image
@python_tip using sys.path.append() instead of sys.path.insert() would be +gut.