[pygtk] pygtk.require("2.0") changed sys.path[0]
Preben Randhol
randhol+pygtk at pvv.org
Mon Mar 19 06:15:59 WST 2007
Hi
If I do:
try:
import pygtk
pygtk.require("2.0")
except:
pass
then sys.path[0] will point towards
/usr/lib/python2.4/site-packages/gtk-2.0
in stead of the script. Is this expected behavior?
If so is there an alternative to sys.path[0] except from catching it
before doing pygtk.require. Do one need to do this at all by the way?
Thanks in advance
Preben
More information about the pygtk
mailing list