I had the same issue with my Python programs - I've fixed it like this: Code: # set current directory to the directory # of this file # like this, modRana can be run from an absolute path # eq.: ./opt/modrana/modrana.py -u QML -d n9 import os os.chdir(os.path.dirname(os.path.abspath(__file__))) @packaging I'm using a slightly modified khertans sdist_maemo and it works quite nicely. There is also a (slightly outdated) example how I do it.
# set current directory to the directory # of this file # like this, modRana can be run from an absolute path # eq.: ./opt/modrana/modrana.py -u QML -d n9 import os os.chdir(os.path.dirname(os.path.abspath(__file__)))