install-debugclients.py

branch
maintenance
changeset 6319
df201b9fbad4
parent 6304
68f9aa03bf75
child 6364
6a496f0886ad
equal deleted inserted replaced
6274:44249d49d892 6319:df201b9fbad4
25 import os 25 import os
26 import re 26 import re
27 import compileall 27 import compileall
28 import shutil 28 import shutil
29 import fnmatch 29 import fnmatch
30 import distutils.sysconfig
31 30
32 # Define the globals. 31 # Define the globals.
33 progName = None 32 progName = None
34 currDir = os.getcwd() 33 currDir = os.getcwd()
35 modDir = None 34 modDir = None
94 """ 93 """
95 Module function to set the values of globals that need more than a 94 Module function to set the values of globals that need more than a
96 simple assignment. 95 simple assignment.
97 """ 96 """
98 global modDir, pyModDir 97 global modDir, pyModDir
98
99 try:
100 import distutils.sysconfig
101 except ImportError:
102 print("Please install the 'distutils' package first.")
103 exit(5)
99 104
100 modDir = distutils.sysconfig.get_python_lib(True) 105 modDir = distutils.sysconfig.get_python_lib(True)
101 pyModDir = modDir 106 pyModDir = modDir
102 107
103 108

eric ide

mercurial