Skip to content

Commit fcef55a

Browse files
author
Alexander Smishlajev
committed
fix load_extensions():
_load_python() was called with absolute path to extensions file while _load_python() requires path relative to the tracker home.
1 parent 9dd7f93 commit fcef55a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/instance.py

Lines changed: 4 additions & 4 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: instance.py,v 1.20 2004-09-24 08:21:22 a1s Exp $
18+
# $Id: instance.py,v 1.21 2004-09-26 13:16:40 a1s Exp $
1919

2020
'''Tracker handling (open tracker).
2121
@@ -72,9 +72,9 @@ def open(self, name):
7272
return db
7373

7474
def load_extensions(self, parent, dirname):
75-
dirname = os.path.join(self.tracker_home, dirname)
76-
if os.path.isdir(dirname):
77-
for name in os.listdir(dirname):
75+
dirpath = os.path.join(self.tracker_home, dirname)
76+
if os.path.isdir(dirpath):
77+
for name in os.listdir(dirpath):
7878
if not name.endswith('.py'):
7979
continue
8080
vars = {}

0 commit comments

Comments
 (0)