Re: A Trivial Python Error
Adrian Klaver <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Monday 27 November 2006 03:40 pm, Rich Shepard wrote: > On Mon, 27 Nov 2006, Adrian Klaver wrote: > >> config.projname = ted.GetValue() > >> config.dbFileName = ted.GetValue() + '.db' > > > > Until you made the change, config.dbFileName was only defined in > > config.py. Unless you are writing to config.py and changing the values > > for dirname and projname their values are set to ' '. > > Adrian, > > That's why I explicitly assigned the directory and file names to the > config module. > > Well, anyway, it works. It may not be elegant, but it's functional. :-) > > Thanks, > > Rich 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. -- Adrian Klaver [email protected]