Victor Subervi
victorsubervi at gmail.com
Fri Apr 18 08:49:31 EDT 2008
On Thu, Apr 17, 2008 at 6:23 PM, Graham Dumpleton < graham.dumpleton at gmail.com> wrote: > 2008/4/18 Joseph Bernhardt <joe at incomps.com>: > > > > > 2008/4/18 Joseph Bernhardt <joe at incomps.com>: > > > > > > > > > > > > > > > > > > > > 1) How do I import a file in the same folder as the script which is > > > > importing? This does not work: > > > > > > > > Is this directory in your module path? sys.path > This is what ended up working... import sys,os sys.path.append(os.getcwd()) from example import example Concerning the problems with errors (IntegrityError, OperationalError), I have indeed imported MySQLdb, but that does not resolve the problem. Other ideas? TIA, Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080418/c399e307/attachment.html
|