Skip to content

Commit 34f04fd

Browse files
author
Richard Jones
committed
stopped pyc writing to current directory! yay! (patch [SF#800718] with changes)
1 parent a72133a commit 34f04fd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ are given with the most recent entry first.
44
2003-09-?? 0.6.2
55
Fixed:
66
- cleaned up, clarified internal caching API in *dbm backends
7+
- stopped pyc writing to current directory! yay! (patch 800718 with changes)
78
- commented out example tracker homes (patch 800720)
89

910

templates/classic/detectors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: __init__.py,v 1.1 2003-04-17 03:26:38 richard Exp $
18+
#$Id: __init__.py,v 1.2 2003-09-04 23:39:18 richard Exp $
1919

2020
import sys, os, imp
2121

@@ -29,7 +29,7 @@ def init(db):
2929
if name == '__init__':
3030
continue
3131
if ext == '.py':
32-
module = imp.load_module(name, open(path), file,
32+
module = imp.load_module(name, open(path), os.path.abspath(path),
3333
('.py', 'r', imp.PY_SOURCE))
3434
module.init(db)
3535

templates/minimal/detectors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: __init__.py,v 1.1 2003-04-17 03:27:56 richard Exp $
18+
#$Id: __init__.py,v 1.2 2003-09-04 23:39:18 richard Exp $
1919

2020
import sys, os, imp
2121

@@ -29,7 +29,7 @@ def init(db):
2929
if name == '__init__':
3030
continue
3131
if ext == '.py':
32-
module = imp.load_module(name, open(path), file,
32+
module = imp.load_module(name, open(path), os.path.abspath(path),
3333
('.py', 'r', imp.PY_SOURCE))
3434
print (name, open(path), file, module)
3535
module.init(db)

0 commit comments

Comments
 (0)