How to import your package/modules from a script in bin folder in python
Usually, setup.py
should install the package in a place where the Python interpreter can find it, so after installation import mypackage
will work. To facilitate running the scripts in bin
right from the development tree, I'd usually simply add a simlink to ../mypackage/
to the bin
directory. Of course, this requires a filesystem supporting symlinks…