Jean Elcard
The Flavournator
Ok, here is my rather technical python problem formulated in a neutral way:
Situation: I've written a mapscript consisting of the mymapscript.py file itself and a helperfile.py with some extra functionality.
Objective: I would like to put the helperfile.py in its own subdirectory called mysub in the PublicMaps directory to keep the code well structured and to prevent it from showing up ingame as a seemingly valid mapscript, which it of course isn't.
Failed Attempt: I put the helperfile.py together with a __init__.py file in the mysub directory and stated the following code in mymapscript.py in the PublicMaps folder:
I thought this should work (as it usually does with python outside of civ4), but it doesn't. Any ideas why?
Situation: I've written a mapscript consisting of the mymapscript.py file itself and a helperfile.py with some extra functionality.
Objective: I would like to put the helperfile.py in its own subdirectory called mysub in the PublicMaps directory to keep the code well structured and to prevent it from showing up ingame as a seemingly valid mapscript, which it of course isn't.
Failed Attempt: I put the helperfile.py together with a __init__.py file in the mysub directory and stated the following code in mymapscript.py in the PublicMaps folder:
Code:
from mysub.helperfile import Stuff
I thought this should work (as it usually does with python outside of civ4), but it doesn't. Any ideas why?