27 |
27 |
28 |
28 |
29 def exit(rcode=0): |
29 def exit(rcode=0): |
30 """ |
30 """ |
31 Exit the uninstall script. |
31 Exit the uninstall script. |
|
32 |
|
33 @param rcode result code to report back (integer) |
32 """ |
34 """ |
33 # restore the local eric5config.py |
35 # restore the local eric5config.py |
34 if os.path.exists("eric5config.py.orig"): |
36 if os.path.exists("eric5config.py.orig"): |
35 if os.path.exists("eric5config.py"): |
37 if os.path.exists("eric5config.py"): |
36 os.remove("eric5config.py") |
38 os.remove("eric5config.py") |
63 |
65 |
64 |
66 |
65 def wrapperName(dname, wfile): |
67 def wrapperName(dname, wfile): |
66 """ |
68 """ |
67 Create the platform specific name for the wrapper script. |
69 Create the platform specific name for the wrapper script. |
|
70 |
|
71 @param dname name of the directory to place the wrapper into |
|
72 @param wfile basename (without extension) of the wrapper script |
|
73 @return the name of the wrapper script |
68 """ |
74 """ |
69 if sys.platform.startswith("win"): |
75 if sys.platform.startswith("win"): |
70 wname = dname + "\\" + wfile + ".bat" |
76 wname = dname + "\\" + wfile + ".bat" |
71 else: |
77 else: |
72 wname = dname + "/" + wfile |
78 wname = dname + "/" + wfile |