scripts/uninstall.py

changeset 8260
2161475d9639
parent 8254
259484b0fc75
child 8314
e3642a6a1e71
--- a/scripts/uninstall.py	Wed Apr 21 19:40:50 2021 +0200
+++ b/scripts/uninstall.py	Thu Apr 22 18:02:47 2021 +0200
@@ -97,11 +97,11 @@
     @param wfile basename (without extension) of the wrapper script
     @return the names of the wrapper scripts
     """
-    if sys.platform.startswith(("win", "cygwin")):
-        wnames = (dname + "\\" + wfile + ".cmd",
-                  dname + "\\" + wfile + ".bat")
-    else:
-        wnames = (dname + "/" + wfile, )
+    wnames = (
+        (dname + "\\" + wfile + ".cmd", dname + "\\" + wfile + ".bat")
+        if sys.platform.startswith(("win", "cygwin")) else
+        (dname + "/" + wfile, )
+    )
 
     return wnames
 

eric ide

mercurial