#63 os.environ problem

open
nobody
None
5
2004-10-20
2004-10-20
Anonymous
No

At the beginning of my main script I do:
os.environ['SOMEVARIABLE''] = myvalue

then one of modules reads the variable with:
environ.get('SOMEVARIABLE', 'default')

In py2exe distibution the returned value is 'default',
what means the environ was not set (or read) propely

Discussion

  • Thomas Heller
    Thomas Heller
    2004-11-18

    Logged In: YES
    user_id=11105

    Can you please prepare a test case which shows this behaviour?

    Although I strongly suspect that it isn't py2exe's fault,
    and even would guess it cannot be really reproduced. Are you
    sure the environ.get is executed before the environ setting?