scripts/install-debugclients.py

changeset 8243
cc717c2ae956
parent 7960
e8fc383322f7
child 8260
2161475d9639
equal deleted inserted replaced
8242:aa713ac50c0d 8243:cc717c2ae956
16 import os 16 import os
17 import re 17 import re
18 import compileall 18 import compileall
19 import shutil 19 import shutil
20 import fnmatch 20 import fnmatch
21 import contextlib
21 22
22 # Define the globals. 23 # Define the globals.
23 progName = None 24 progName = None
24 currDir = os.getcwd() 25 currDir = os.getcwd()
25 modDir = None 26 modDir = None
39 @param rcode result code to report back (integer) 40 @param rcode result code to report back (integer)
40 """ 41 """
41 global currDir 42 global currDir
42 43
43 if sys.platform.startswith("win"): 44 if sys.platform.startswith("win"):
44 try: 45 with contextlib.suppress():
45 input("Press enter to continue...") # secok 46 input("Press enter to continue...") # secok
46 except (EOFError, SyntaxError):
47 pass
48 47
49 os.chdir(currDir) 48 os.chdir(currDir)
50 49
51 sys.exit(rcode) 50 sys.exit(rcode)
52 51

eric ide

mercurial