ok ive made an error, a recursion problem exist.
i came up with a different solution,
under /Programs/Python/Settings i created gobopython which contains all
pythonpaths we need to have additionaly (just a path line for line)
in /Programs/Python/2.5.1/lib/python2.5/site-packages i added:
gobo_python_setup.py: which sets up site dirs (its attached) it wont run
twice!
and in gobolinux.pth gobo_python_setup.py is just started, this solution
works over here.
i think the file in Settings should be renamed, any hints for usefull
names? and the path in gobo_python_setup.py should not be hardcoded (so
python can installed to another prefix).
how do you like this solution any suggestions?
On Mon, 2008-04-21 at 20:36 +0200, Christian Holzberger wrote:
> hi,
>
> iam using gobo for a few days now and i really must admit that i liek
> the directory layout very much.
>
> in the python installation (tested with 2.5 and 2.5.1) there is an error
> regaring .pth files in the system wide site-packages dir.
>
> (pygtk error, vobject error etc.)
>
> if i add
> import site; known =
> site.addsitedir("/System/Links/Libraries/python2.5/site-packages/")
>
> python will find my installed addons and load the .pth files just right
>
> i attached an corrected version of gobolinux.pth to this message and
> hope that it will get part of the standard python distribytuin in gobo.
> (to not have to patch it by hand everytime a new version comes out)
>
>
> - christian (molle)
> _______________________________________________
> gobolinux-devel mailing list
> [email protected]
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel
--
MOSAIK Software - Christian Holzberger
Web: http://www.mosaik-software.de
import gobo_python_setup; gobo_python_setup.gobo_setup()
#!/usr/bin/python
import site
gobo_run_setup = 1
def gobo_setup():
if gobo_run_setup <> 1: return
global gobo_run_setup
gobo_run_setup = 0
CONFFILE = "/Programs/Python/Settings/gobopython"
f=open (CONFFILE,"r")
known = None
for s in f:
known = site.addsitedir(s[:-1],known) #skip \n
/System/Links/Libraries/python2.3/site-packages/
/System/Links/Libraries/python2.4/site-packages/
/System/Links/Libraries/python2.5/site-packages/
_______________________________________________
gobolinux-devel mailing list
[email protected]
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel