equal
deleted
inserted
replaced
8 # GNU General Public License version 2 or any later version. |
8 # GNU General Public License version 2 or any later version. |
9 from __future__ import absolute_import |
9 from __future__ import absolute_import |
10 |
10 |
11 import os |
11 import os |
12 import sys |
12 import sys |
13 |
|
14 if os.environ.get('HGUNICODEPEDANTRY', False): |
|
15 try: |
|
16 reload(sys) |
|
17 sys.setdefaultencoding("undefined") |
|
18 except NameError: |
|
19 pass |
|
20 |
13 |
21 libdir = '@LIBDIR@' |
14 libdir = '@LIBDIR@' |
22 |
15 |
23 if libdir != '@' 'LIBDIR' '@': |
16 if libdir != '@' 'LIBDIR' '@': |
24 if not os.path.isabs(libdir): |
17 if not os.path.isabs(libdir): |