KB0001: Splitting Python scripts into multiple files

When writing Python scripts for BinNavi, you might want to split large scripts into multiple Python files. By default this causes problems because the import path is not set up the way you expect.

Take the following example that imports the function show_stats from the file library.py into the file main.py.

library.py:
main.py:
This does not work because you have to set up the import path.

To do this, change main.py to