Re: passing environment variable path to open command

2010-06-11 Thread Mahmood Naderan
.org Sent: Fri, June 11, 2010 2:05:15 PM Subject: Re: passing environment variable path to open command Am 11.06.2010 10:39, schrieb Mahmood Naderan: > Hi, > I am new to python so my question may be very basic. > Suppose I have a file (sc_1.sh) which the path to that file is in system path: >

Re: passing environment variable path to open command

2010-06-11 Thread Christian Heimes
Am 11.06.2010 10:39, schrieb Mahmood Naderan: > Hi, > I am new to python so my question may be very basic. > Suppose I have a file (sc_1.sh) which the path to that file is in system path: > SOMETHING=/home/mahmood/scripts > > Now I want to open that file with respect to the environment variable:

Re: passing environment variable path to open command

2010-06-11 Thread Jean-Michel Pichavant
Mahmood Naderan wrote: Hi, I am new to python so my question may be very basic. Suppose I have a file (sc_1.sh) which the path to that file is in system path: SOMETHING=/home/mahmood/scripts Now I want to open that file with respect to the environment variable: import os env = os.g