Mercurial > p > roundup > code
diff templates/classic/detectors/__init__.py @ 1784:91dc06940bbe
stopped pyc writing to current directory! yay! (patch [SF#800718] with changes)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 04 Sep 2003 23:39:18 +0000 |
| parents | 21312a7564fd |
| children | 7752267776cc |
line wrap: on
line diff
--- a/templates/classic/detectors/__init__.py Thu Sep 04 23:28:50 2003 +0000 +++ b/templates/classic/detectors/__init__.py Thu Sep 04 23:39:18 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: __init__.py,v 1.1 2003-04-17 03:26:38 richard Exp $ +#$Id: __init__.py,v 1.2 2003-09-04 23:39:18 richard Exp $ import sys, os, imp @@ -29,7 +29,7 @@ if name == '__init__': continue if ext == '.py': - module = imp.load_module(name, open(path), file, + module = imp.load_module(name, open(path), os.path.abspath(path), ('.py', 'r', imp.PY_SOURCE)) module.init(db)
