En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]> escribió:
> The problem is I don't define the functions AddPlot() and DrawPlots(). > It's built into the python interpreter of the CLI version of the > program I mentioned, and they are defined on the main script. I load > the main script using something like "software -cli -s > mainscript.py". > In the mainscript.py I import myModule, but of course myModule does > not have access to the functions defined in the global namespace of > mainscript.py. Don't you have some import statements at the top of mainscript.py that are responsible for bringing AddPlot and DrawPlots into the current namespace? Import the same things in your second module. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list