src/eric7/eric7_post_install.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9346
eda0bdb22e67
child 9380
3d662dda80e8
--- a/src/eric7/eric7_post_install.py	Sat Oct 01 20:06:27 2022 +0200
+++ b/src/eric7/eric7_post_install.py	Sun Oct 02 11:29:11 2022 +0200
@@ -96,7 +96,7 @@
     entriesTemplates = [
         (
             "eric7 (Python {0}.{1}).lnk",
-            os.path.join(scriptsDir, "eric7.exe"),
+            os.path.join(scriptsDir, "eric7_ide.exe"),
             os.path.join(iconsDir, "eric7.ico"),
         ),
         (
@@ -156,11 +156,12 @@
     """
     import eric7
 
+    ericDir = os.path.dirname(eric7.__file__)
     scriptsDir = sysconfig.get_path("scripts")
     dstDir = os.path.join(os.path.expanduser("~"), ".local", "share")
-    iconsDir = os.path.join(os.path.dirname(eric7.__file__), "pixmaps")
-    svgIconsDir = os.path.join(os.path.dirname(eric7.__file__), "icons", "breeze-dark")
-    linuxDir = os.path.join(os.path.dirname(eric7.__file__), "data", "linux")
+    iconsDir = os.path.join(ericDir, "pixmaps")
+    svgIconsDir = os.path.join(ericDir, "icons", "breeze-dark")
+    linuxDir = os.path.join(ericDir, "data", "linux")
 
     for metaDir in ["appdata", "metainfo"]:
         copyMetaFile(

eric ide

mercurial