Re: [tuxdroid-user] Hard-coded path is gtdi.py
Status: Beta
Brought to you by:
ks156
From: David B. <da...@ja...> - 2007-03-25 19:53:00
|
On Sat, 24 Mar 2007 21:13:25 +0100, Florent THIERY <ft...@gm...> = wrote: >> line 31: sys.path.append('/opt/tuxdroid/api/python') >> >> To get around this I have a simple script: >> #!/bin/sh >> export PYTHONPATH=3D~/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.. I think we should package the api using distutils so the tux module will= = be available as any other python module. Regarding svn, you don't need to name a checked out folder the same as t= he = repository. Here you should do a checkout of trunk in the = /opt/tuxdroid/api/python folder directly: rm -rf /opt/tuxdroid/api/python/* svn co http://svn.tuxisalive.com/api/python/trunk /opt/tuxdroid/api/pyth= on so you can update easily and don't need to change anything in the = applications. (yes the svn has moved, I'll give you more information soon) |