Ticket #11016: managepath.3.diff
File managepath.3.diff, 677 bytes (added by , 16 years ago) |
---|
-
core/management/__init__.py
50 50 try: 51 51 f, path, descr = imp.find_module(part,path) 52 52 except ImportError,e: 53 if os.path.basename(os.getcwd()) != part: 53 if os.path.islink(sys.argv[0]): 54 name = os.readlink(sys.argv[0]) 55 else: 56 name = sys.argv[0] 57 (head, tail) = os.path.split(os.path.abspath(name)) 58 base = os.path.basename(head) 59 if os.path.basename(head) != part: 54 60 raise e 55 61 56 62 while parts: