# HG changeset patch # User Alexander Solovyov # Date 1238577074 -10800 # Node ID 5c794e7331e7c292232121b4e90c795f859e3feb # Parent 5fb6edbf0ab8659d05e2751dff836af4313f936c extensions loading: don't fail if path to extension ends with a '/' diff -r 5fb6edbf0ab8 -r 5c794e7331e7 mercurial/extensions.py --- 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: