I have the following arborescence:
- root_folder <--- I'm here
- folder
- setup.py
- myModule
When I run python setup.py install
from folder
, myModule is installed properly and I can do import myModule
.
Howerver, when I run python folder/setup.py install
from root_folder
, import myModule
fails, I have to call import folder.myModule
.
How can I call the setup.py
script from another folder but keep the root folder to be the folder containing the setup.py
file?