setting python path within spyce script?
Hardeep Nahal <[email protected]> Tue, 14 Aug 2007 14:30:57 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm having problems trying to get SPYCE to use an older version of Python installed on our server, instead of a newer version (ie. I want it to use python2.3 instead of python2.4). Our server has both versions, but Python2.3 has some modules in its 'site-packages' folder that I need specifically for my spyce program to function. The modules that I need are present in Python2.4, but they have major changes which cause my script fail, so I really need the spyce script to use python2.3. I've tried doing this: import sys sys.path = ['/my path to python2.3/site-packages/'] + sys.path but the spyce script still uses python2.4 ( I can tell from the error output when it gives a path to the modules causing problems). How can I tell Spyce to use Python2.3 instead of Python2.4? Is there an environmental variable I can set from within my Spyce script? Any suggestions would be greatly appreciated. thanks, Hardeep ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/