Show More
@@ -36,6 +36,14 b' IS_WINDOWS = "windows" in BUILD_TARGET_T' | |||
|
36 | 36 | |
|
37 | 37 | # Code to run in Python interpreter. |
|
38 | 38 | RUN_CODE = """ |
|
39 | import os | |
|
40 | import sys | |
|
41 | extra_path = os.environ.get('PYTHONPATH') | |
|
42 | if extra_path is not None: | |
|
43 | # extensions and hooks expect a working python environment | |
|
44 | # We do not prepend the values because the Mercurial library wants to be in | |
|
45 | # the front of the sys.path to avoid picking up other installations. | |
|
46 | sys.path.extend(extra_path.split(os.pathsep)) | |
|
39 | 47 | import hgdemandimport; |
|
40 | 48 | hgdemandimport.enable(); |
|
41 | 49 | from mercurial import dispatch; |
General Comments 0
You need to be logged in to leave comments.
Login now