Re: Please Explain This Error
Rich Shepard <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 3 Nov 2006, [email protected] wrote: > I know that this might just mess your world up all over the place, but > here is something that I did a while back, since I had multple classes > that I wanted to use a single database connection I did this: Greg, I found the answer when I stumbled across another thread on the wxpython mail list: <http://www.effbot.org/pyfaq/how-do-i-share-global-variables-across-modules.htm> So, I created config.py with the single line: projname = ' ' Then I import config in all the relevant files, and in the dbMethods.py module I reference the variable as config.projname. It works! Now I can move on, I believe. Thanks to all of you for your patience and help, 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