I am compiling IronPython scripts into EXE file by referring to: IronPython - how to compile exe
It is working fine if all the IronPython scripts are located in the same folder. However, if I have IronPython script in different folder, I will receive an import error message when I import them.
For example, this is my file structure:
/MyIronPythonProject
/util
/generic.py
/__init__.py
/main.py
And in my main.py, i import generic.py:
import util.generic
a = generic.somemethod()
Do you have any idea about this issue? Please advice. Thanks.