8500:e7814dd19115 | 8501:7b5f10581c35 |
---|---|
8 | 8 |
9 """ | 9 """ |
10 Uninstallation script for the eric IDE and all eric related tools. | 10 Uninstallation script for the eric IDE and all eric related tools. |
11 """ | 11 """ |
12 | 12 |
13 import sys | 13 import contextlib |
14 import glob | |
14 import os | 15 import os |
15 import shutil | 16 import shutil |
16 import glob | 17 import sys |
17 import distutils.sysconfig | 18 import sysconfig |
18 import contextlib | |
19 | 19 |
20 # Define the globals. | 20 # Define the globals. |
21 progName = None | 21 progName = None |
22 currDir = os.getcwd() | 22 currDir = os.getcwd() |
23 pyModDir = None | 23 pyModDir = None |
84 """ | 84 """ |
85 Set the values of globals that need more than a simple assignment. | 85 Set the values of globals that need more than a simple assignment. |
86 """ | 86 """ |
87 global pyModDir | 87 global pyModDir |
88 | 88 |
89 pyModDir = distutils.sysconfig.get_python_lib(True) | 89 pyModDir = sysconfig.get_path('platlib') |
90 | 90 |
91 | 91 |
92 def wrapperNames(dname, wfile): | 92 def wrapperNames(dname, wfile): |
93 """ | 93 """ |
94 Create the platform specific names for the wrapper script. | 94 Create the platform specific names for the wrapper script. |