install.py

branch
5_2_x
changeset 1657
53b34dfe1fa0
parent 1538
c14a5ecdb6f4
child 1662
dadf3f4ee800
equal deleted inserted replaced
1656:a1f6aa6e36bf 1657:53b34dfe1fa0
19 import fnmatch 19 import fnmatch
20 import distutils.sysconfig 20 import distutils.sysconfig
21 21
22 # Define the globals. 22 # Define the globals.
23 progName = None 23 progName = None
24 currDir = os.getcwd()
24 modDir = None 25 modDir = None
25 pyModDir = None 26 pyModDir = None
26 platBinDir = None 27 platBinDir = None
27 distDir = None 28 distDir = None
28 apisDir = None 29 apisDir = None
43 44
44 def exit(rcode=0): 45 def exit(rcode=0):
45 """ 46 """
46 Exit the install script. 47 Exit the install script.
47 """ 48 """
49 global currDir
50
48 if sys.platform.startswith("win"): 51 if sys.platform.startswith("win"):
49 input("Press enter to continue...") 52 input("Press enter to continue...")
53
54 os.chdir(currDir)
50 55
51 sys.exit(rcode) 56 sys.exit(rcode)
52 57
53 58
54 def usage(rcode=2): 59 def usage(rcode=2):
921 # Parse the command line. 926 # Parse the command line.
922 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir 927 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
923 global sourceDir, configName 928 global sourceDir, configName
924 929
925 progName = os.path.basename(argv[0]) 930 progName = os.path.basename(argv[0])
931
932 os.chdir(os.path.dirname(argv[0]))
926 933
927 initGlobals() 934 initGlobals()
928 935
929 try: 936 try:
930 if sys.platform.startswith("win"): 937 if sys.platform.startswith("win"):

eric ide

mercurial