##// END OF EJS Templates
hg: don't attempt to extend `sys.path` with the user site without `APPDATA`...
Matt Harbison -
r48694:769cd570 stable
parent child Browse files
Show More
@@ -28,9 +28,11 b" if libdir != '@' 'LIBDIR' '@':"
28 # to the documentation.
28 # to the documentation.
29 if getattr(sys, 'frozen', None) == 'console_exe':
29 if getattr(sys, 'frozen', None) == 'console_exe':
30 vi = sys.version_info
30 vi = sys.version_info
31 appdata = os.environ.get('APPDATA')
32 if appdata:
31 sys.path.append(
33 sys.path.append(
32 os.path.join(
34 os.path.join(
33 os.environ['APPDATA'],
35 appdata,
34 'Python',
36 'Python',
35 'Python%d%d' % (vi[0], vi[1]),
37 'Python%d%d' % (vi[0], vi[1]),
36 'site-packages',
38 'site-packages',
@@ -47,9 +47,11 b' if extra_path is not None:'
47 # Add user site to sys.path to load extensions without the full path
47 # Add user site to sys.path to load extensions without the full path
48 if os.name == 'nt':
48 if os.name == 'nt':
49 vi = sys.version_info
49 vi = sys.version_info
50 appdata = os.environ.get('APPDATA')
51 if appdata:
50 sys.path.append(
52 sys.path.append(
51 os.path.join(
53 os.path.join(
52 os.environ['APPDATA'],
54 appdata,
53 'Python',
55 'Python',
54 'Python%d%d' % (vi[0], vi[1]),
56 'Python%d%d' % (vi[0], vi[1]),
55 'site-packages',
57 'site-packages',
General Comments 0
You need to be logged in to leave comments. Login now