i have a program that uses a module i've written for another program.
I put it in the main directory but in a directory of it's own so i end
up with something like this:
Where program2 is the module i'm trying to use in program1. I do this by
adding these lines in program 1:
import program1.dir1.file1 as f1
Then i can use the functionality of the first program in the second.
(not sure if this is the best way)
As said this works but when i make a standalone of program2 it doesn't
find any of the program1 files:
Traceback (most recent call last):
File "start.py", line 20, in ?
File "windows\windowmain.pyo", line 59, in ?
File "program1\__init__.pyo", line 2, in ?
File "program1\dir1\__init__.pyo", line 1, in ?
File "program1\dir1\file1.pyo", line 28, in ?
ImportError: No module named dir2.file2
dir2.file2 is imported in file1.py as import dir2.file2.
So something in my setup script is wrong. How can i make sure all file
of program1 are also added?
Excerpt of setup.py
If i specify program1 as module or as package or program1.dir1 and so on
doesn't seem to help.