Re: A Trivial Python Error
Rich Shepard <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 27 Nov 2006, Adrian Klaver wrote: > I may not be explaining it well , but when you are doing the above you are > only changing the name in the namespace of newFile(). Unless there is > another part that I am not seeing the name change will not propagate back > to config.py. newFile() is called by OnNewMod() so OnNewMod() sees the > changes from newFile() only. Ah! So comes the dawn. Yes, it all makes perfect sense now. Since I want the values for the three variables (directory, file and database names) to be globally visible -- which is why they're in a separate module imported by all the others -- how should I pass the values to the config.py namespace? This, of course, needs to be done each time the model is run and a database file created or opened. Many thanks, Rich -- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc.(TM) | Accelerator <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863