Re: setting python path within spyce script?

Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> Tue, 14 Aug 2007 16:03:00 -0400
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
Hi
I just start my syceCmd.py script with the version of python that i  
want to run
python2.3 spyceCmd.py -l --conf config.py
or
python2.5 spyceCmd.py -l --conf config.py
Regards
Chris
On 14 Aug 2007, at 14:30, Hardeep Nahal wrote:

> 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/
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users


-------------------------------------------------------------------------
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/