Show More
@@ -58,6 +58,20 b" if os.name == 'nt':" | |||||
58 | 'site-packages', |
|
58 | 'site-packages', | |
59 | ) |
|
59 | ) | |
60 | ) |
|
60 | ) | |
|
61 | elif sys.platform == "darwin": | |||
|
62 | vi = sys.version_info | |||
|
63 | ||||
|
64 | def joinuser(*args): | |||
|
65 | return os.path.expanduser(os.path.join(*args)) | |||
|
66 | ||||
|
67 | # Note: site.py uses `sys._framework` instead of hardcoding "Python" as the | |||
|
68 | # 3rd arg, but that is set to an empty string in an oxidized binary. It | |||
|
69 | # has a fallback to ~/.local when `sys._framework` isn't set, but we want | |||
|
70 | # to match what the system python uses, so it sees pip installed stuff. | |||
|
71 | usersite = joinuser("~", "Library", "Python", | |||
|
72 | "%d.%d" % vi[:2], "lib/python/site-packages") | |||
|
73 | ||||
|
74 | sys.path.append(usersite) | |||
61 | import hgdemandimport; |
|
75 | import hgdemandimport; | |
62 | hgdemandimport.enable(); |
|
76 | hgdemandimport.enable(); | |
63 | from mercurial import dispatch; |
|
77 | from mercurial import dispatch; |
General Comments 0
You need to be logged in to leave comments.
Login now