72 pass |
67 pass |
73 |
68 |
74 os.chdir(currDir) |
69 os.chdir(currDir) |
75 |
70 |
76 sys.exit(rcode) |
71 sys.exit(rcode) |
|
72 |
|
73 # get a local eric6config.py out of the way |
|
74 if os.path.exists("eric6config.py"): |
|
75 os.rename("eric6config.py", "eric6config.py.orig") |
|
76 try: |
|
77 from eric6config import getConfig |
|
78 except ImportError: |
|
79 print("The eric6 IDE doesn't seem to be installed. Aborting.") |
|
80 exit(1) |
|
81 except SyntaxError: |
|
82 # an incomplete or old config file was found |
|
83 print("The eric6 IDE seems to be installed incompletely. Aborting.") |
|
84 exit(1) |
77 |
85 |
78 |
86 |
79 def usage(rcode=2): |
87 def usage(rcode=2): |
80 """ |
88 """ |
81 Display a usage message and exit. |
89 Display a usage message and exit. |