mercurial/extensions.py
changeset 7960 5c794e7331e7
parent 7916 f779e1996e23
child 8206 cce63ef1045b
--- a/mercurial/extensions.py	Sat Apr 04 15:14:36 2009 +0200
+++ b/mercurial/extensions.py	Wed Apr 01 12:11:14 2009 +0300
@@ -33,7 +33,7 @@
     path = os.path.expanduser(path)
     if os.path.isdir(path):
         # module/__init__.py style
-        d, f = os.path.split(path)
+        d, f = os.path.split(path.rstrip('/'))
         fd, fpath, desc = imp.find_module(f, [d])
         return imp.load_module(module_name, fd, fpath, desc)
     else: