eddy at netido.de
Sat Jun 5 21:32:03 CEST 2004
I am having a problem with an application I am writing:
I have 2 scripts called 'conf' and 'build'. Both define
a variable named 'root' and import a module named 'helper'.
In the helper module I want to access the root variable, that is
_either_ in conf _or_ build. How can I do this?
I just want the root variable to be global for all modules.
(I don't want to put root in helper, since that would make no sense at
I also tried this:
>> from helper import *
Why does this not work? Why are there suddenly two variables a? One
for helper.py (stays 5) and a global one (became 6)? This is a bit
irritating. Didn't find it in any documentation
More information about the Python-list