From 3a6f0fe2a9a2fec1a09abeb19c9c321ca69095db Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 4 Sep 2003 23:39:18 +0000 Subject: [PATCH] stopped pyc writing to current directory! yay! (patch 800718 with changes) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1851 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + templates/classic/detectors/__init__.py | 4 ++-- templates/minimal/detectors/__init__.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a00ba2c..39f9a80 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,7 @@ are given with the most recent entry first. 2003-09-?? 0.6.2 Fixed: - cleaned up, clarified internal caching API in *dbm backends +- stopped pyc writing to current directory! yay! (patch 800718 with changes) - commented out example tracker homes (patch 800720) diff --git a/templates/classic/detectors/__init__.py b/templates/classic/detectors/__init__.py index ead90bb..a9460a0 100644 --- a/templates/classic/detectors/__init__.py +++ b/templates/classic/detectors/__init__.py @@ -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 @@ def init(db): 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) diff --git a/templates/minimal/detectors/__init__.py b/templates/minimal/detectors/__init__.py index e96d262..859a22c 100644 --- a/templates/minimal/detectors/__init__.py +++ b/templates/minimal/detectors/__init__.py @@ -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:27:56 richard Exp $ +#$Id: __init__.py,v 1.2 2003-09-04 23:39:18 richard Exp $ import sys, os, imp @@ -29,7 +29,7 @@ def init(db): 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)) print (name, open(path), file, module) module.init(db) -- 2.30.2