40 if os.path.exists("eric6config.py"): |
41 if os.path.exists("eric6config.py"): |
41 os.remove("eric6config.py") |
42 os.remove("eric6config.py") |
42 os.rename("eric6config.py.orig", "eric6config.py") |
43 os.rename("eric6config.py.orig", "eric6config.py") |
43 |
44 |
44 if sys.platform.startswith(("win", "cygwin")): |
45 if sys.platform.startswith(("win", "cygwin")): |
45 try: |
46 with contextlib.suppress(): |
46 input("Press enter to continue...") # secok |
47 input("Press enter to continue...") # secok |
47 except (EOFError, SyntaxError): |
|
48 pass |
|
49 |
48 |
50 os.chdir(currDir) |
49 os.chdir(currDir) |
51 |
50 |
52 sys.exit(rcode) |
51 sys.exit(rcode) |
53 |
52 |