On Wed, 2004-09-29 at 08:19, Antoon Pardon wrote: > On Wed, Sep 29, 2004 at 11:16:19AM +0100, Gustavo J. A. M. Carneiro wrote: > > Qua, 2004-09-29 �s 12:05 +0200, Antoon Pardon escreveu: > > > > > > > > I'm running Debian Sarge with python 2.3.4 and python-gtk2 2.2.0 > > > So pygtk 2.2.0 is in /usr/lib and pygtk 2.3.97 is in /usr/local/lib > > > > Maybe you need to adjust PYTHONPATH... > > > That won't do any good. I have found out that my python configuration > puts /usr/local/lib/python before /usr/lib/python. That means that > normally all pygtk program will import the 2.3.97 version. >
Maybe you can put /usr/local/lib/python after /usr/lib/python in PYTHONPATH and then create an alias like this: alias pygtk2.3.97='PYTHONPATH=/usr/local/lib/python2.3/site-packages:$PYTHONPATH python' Then you can run your tests with pygtk2.3.97. (pygtk2.3.97 test.py) If, for any reason you can't put /usr/local/lib/python after /usr/lib/python, you can install pygtk2.3.97 in another prefix, and make that prefix appear after /usr/lib/python in the PYTHONPATH, to make sure your normal programs will import the 2.2.0 version. HTH, Salgado -- Guilherme Salgado <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
