equal
deleted
inserted
replaced
47 return |
47 return |
48 |
48 |
49 sys.path.insert(0, path) |
49 sys.path.insert(0, path) |
50 try: |
50 try: |
51 import hghaveaddon |
51 import hghaveaddon |
|
52 assert hghaveaddon # silence pyflakes |
52 except BaseException as inst: |
53 except BaseException as inst: |
53 sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n' |
54 sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n' |
54 % (path, inst)) |
55 % (path, inst)) |
55 sys.exit(2) |
56 sys.exit(2) |
56 sys.path.pop(0) |
57 sys.path.pop(0) |