Re: Corectly convert from %PATH%=c:\\X; "c:\\a; b" TO ['c:\\X', 'c:\\a; b']

2005-04-03 Thread chirayuk
Michael Spencer wrote: > chirayuk wrote: > > Hi, > > > > I am trying to treat an environment variable as a python list - and I'm > > sure there must be a standard and simple way to do so. I know that the > > interpreter itself must use it (to process $PATH /

Corectly convert from %PATH%=c:\\X; "c:\\a; b" TO ['c:\\X', 'c:\\a; b']

2005-04-02 Thread chirayuk
Hi, I am trying to treat an environment variable as a python list - and I'm sure there must be a standard and simple way to do so. I know that the interpreter itself must use it (to process $PATH / %PATH%, etc) but I am not able to find a simple function to do so. os.environ['PATH'].split(os.sep)