Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Probably I understood it not correctly. What did you mean was to put > that code into my python script "shrink_bs_070226.py" and then calls > script itself? Yes. > So I took my script "shrink_bs_070226.py" and it starts with: > ** > #!/

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 10:33 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >> > Is there another possibility of how to solve it just by adding some > >> > lines in script? > > >> I think you h

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > Is there another possibility of how to solve it just by adding some >> > lines in script? >> >> I think you have to wrap your script in a shell script >> >> #!/bin/sh >> export LD

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread boris . smirnov
On Feb 27, 9:31 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Is there another possibility of how to solve it just by adding some > > lines in script? > > I think you have to wrap your script in a shell script > > #!/bin/sh > export LD_LIBRARY_PATH=/path/Linux/rh_linux >

Re: Interactive os.environ vs. os.environ in script

2007-02-27 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Is there another possibility of how to solve it just by adding some > lines in script? I think you have to wrap your script in a shell script #!/bin/sh export LD_LIBRARY_PATH=/path/Linux/rh_linux python shrink_bs_070226.py To avoid that you can have the python script

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
On Feb 26, 5:44 pm, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > > > [EMAIL PROTECTED] wrote: > > > OK then I have to reformulate my question. :) > > > In my script I have a line with > > > os.environ["LD_LIBRARY_PATH"]='/path/Linux/rh_linux' > > > bu

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > > OK then I have to reformulate my question. :) > > In my script I have a line with > > os.environ["LD_LIBRARY_PATH"]='/path/Linux/rh_linux' > > but this line didn't work. But when I set this environment variable > in Linux s

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
On Feb 26, 4:32 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi there, > > > I have a problem with setting environment variable in my script that > > uses qt library. For this library I have to define a path to tell the > > script whre to find it. > > > I have a script

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Hi there, > > I have a problem with setting environment variable in my script that > uses qt library. For this library I have to define a path to tell the > script whre to find it. > > I have a script called "shrink_bs_070226" that looks like this: > **

Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
Hi there, I have a problem with setting environment variable in my script that uses qt library. For this library I have to define a path to tell the script whre to find it. I have a script called "shrink_bs_070226" that looks like this: ** import sys, re, glob, shu