##// END OF EJS Templates
pyoxidizer: add user-site to `sys.path` on Windows...
Matt Harbison -
r48679:95af358f stable
parent child Browse files
Show More
@@ -44,6 +44,17 b' if extra_path is not None:'
44 44 # We do not prepend the values because the Mercurial library wants to be in
45 45 # the front of the sys.path to avoid picking up other installations.
46 46 sys.path.extend(extra_path.split(os.pathsep))
47 # Add user site to sys.path to load extensions without the full path
48 if os.name == 'nt':
49 vi = sys.version_info
50 sys.path.append(
51 os.path.join(
52 os.environ['APPDATA'],
53 'Python',
54 'Python%d%d' % (vi[0], vi[1]),
55 'site-packages',
56 )
57 )
47 58 import hgdemandimport;
48 59 hgdemandimport.enable();
49 60 from mercurial import dispatch;
General Comments 0
You need to be logged in to leave comments. Login now