scripts/uninstall.py

branch
eric7-maintenance
changeset 10101
34f74c19ed7a
parent 9832
3885b9d7bd31
parent 10091
ac6edcfe7831
child 10272
7ae72d1df070
equal deleted inserted replaced
10082:816bc1c6db77 10101:34f74c19ed7a
87 Set the values of globals that need more than a simple assignment. 87 Set the values of globals that need more than a simple assignment.
88 """ 88 """
89 global pyModDir 89 global pyModDir
90 90
91 pyModDir = sysconfig.get_path("platlib") 91 pyModDir = sysconfig.get_path("platlib")
92 if not os.access(pyModDir, os.W_OK):
93 # can't write to the standard path, use the 'user' path instead
94 if sys.platform.startswith(("win", "cygwin")):
95 scheme = "nt_user"
96 elif sys.platform == "darwin":
97 scheme = "osx_framework_user"
98 else:
99 scheme = "posix_user"
100 pyModDir = sysconfig.get_path("platlib", scheme)
92 101
93 102
94 def wrapperNames(dname, wfile): 103 def wrapperNames(dname, wfile):
95 """ 104 """
96 Create the platform specific names for the wrapper script. 105 Create the platform specific names for the wrapper script.
132 "eric7_editor", 141 "eric7_editor",
133 "eric7_hexeditor", 142 "eric7_hexeditor",
134 "eric7_iconeditor", 143 "eric7_iconeditor",
135 "eric7_ide", 144 "eric7_ide",
136 "eric7_pdf", 145 "eric7_pdf",
146 "eric7_pip",
137 "eric7_plugininstall", 147 "eric7_plugininstall",
138 "eric7_pluginrepository", 148 "eric7_pluginrepository",
139 "eric7_pluginuninstall", 149 "eric7_pluginuninstall",
140 "eric7_qregularexpression", 150 "eric7_qregularexpression",
141 "eric7_re", 151 "eric7_re",

eric ide

mercurial