Re: [tuxdroid-user] Hard-coded path is gtdi.py
Status: Beta
Brought to you by:
ks156
From: Florent T. <ft...@gm...> - 2007-03-24 20:13:25
|
> line 31: sys.path.append('/opt/tuxdroid/api/python') > > To get around this I have a simple script: > #!/bin/sh > export PYTHONPATH=~/tuxdroid/python-api I do : sys.path.append('/opt/tuxdroid/api/python/trunk') which is even uglier :) I think the best thing would be to package the api and put a debian repo up, or script the svn update such as: if update is found, cp -R trunk/ ../ ... But again it's ugly... I think i'm gonna move the svn root to another place (/opt/tuxdroid-svn and make copies whenever an update is found to /opt/droid/tuxdroid ... but i don't know how to detect the new version.. |