##// END OF EJS Templates
extensions loading: don't fail if path to extension ends with a '/'
Alexander Solovyov -
r7960:5c794e73 default
parent child Browse files
Show More
@@ -33,7 +33,7 b' def loadpath(path, module_name):'
33 33 path = os.path.expanduser(path)
34 34 if os.path.isdir(path):
35 35 # module/__init__.py style
36 d, f = os.path.split(path)
36 d, f = os.path.split(path.rstrip('/'))
37 37 fd, fpath, desc = imp.find_module(f, [d])
38 38 return imp.load_module(module_name, fd, fpath, desc)
39 39 else:
General Comments 0
You need to be logged in to leave comments. Login now