FAQ

Sami Viitanen wrote:
Hello,

Is there any other way to set variables than os.putenv().

Putenv doesn't actually put any values to actual system variables..

I'm trying to set CVSEDITOR variable automatically from script
so that user wouldn't have to set that him/herself. CVS can't use variable
set with putenv().
You could do the equivalent of:
Paddy at maximillian ~ : echo $SHELL
/bin/bash
Paddy at maximillian ~ : unset foo
Paddy at maximillian ~ : eval `python -c 'print "foo=Hello;export foo"'`
Paddy at maximillian ~ : echo $foo
Hello
Paddy at maximillian ~ :

I use the following for setting up quite complex environments at work:
http://modules.sourceforge.net/

Pad.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 6 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedSep 18, '03 at 6:41a
activeSep 18, '03 at 9:30p
posts6
users6
websitepython.org

People

Translate

site design / logo © 2022 Grokbase