94 scriptsDir = sysconfig.get_path("scripts") |
94 scriptsDir = sysconfig.get_path("scripts") |
95 iconsDir = os.path.join(os.path.dirname(eric7.__file__), "pixmaps") |
95 iconsDir = os.path.join(os.path.dirname(eric7.__file__), "pixmaps") |
96 entriesTemplates = [ |
96 entriesTemplates = [ |
97 ( |
97 ( |
98 "eric7 (Python {0}.{1}).lnk", |
98 "eric7 (Python {0}.{1}).lnk", |
99 os.path.join(scriptsDir, "eric7.exe"), |
99 os.path.join(scriptsDir, "eric7_ide.exe"), |
100 os.path.join(iconsDir, "eric7.ico"), |
100 os.path.join(iconsDir, "eric7.ico"), |
101 ), |
101 ), |
102 ( |
102 ( |
103 "eric7 Browser (Python {0}.{1}).lnk", |
103 "eric7 Browser (Python {0}.{1}).lnk", |
104 os.path.join(scriptsDir, "eric7_browser.exe"), |
104 os.path.join(scriptsDir, "eric7_browser.exe"), |
154 """ |
154 """ |
155 Function to copy the meta data files. |
155 Function to copy the meta data files. |
156 """ |
156 """ |
157 import eric7 |
157 import eric7 |
158 |
158 |
|
159 ericDir = os.path.dirname(eric7.__file__) |
159 scriptsDir = sysconfig.get_path("scripts") |
160 scriptsDir = sysconfig.get_path("scripts") |
160 dstDir = os.path.join(os.path.expanduser("~"), ".local", "share") |
161 dstDir = os.path.join(os.path.expanduser("~"), ".local", "share") |
161 iconsDir = os.path.join(os.path.dirname(eric7.__file__), "pixmaps") |
162 iconsDir = os.path.join(ericDir, "pixmaps") |
162 svgIconsDir = os.path.join(os.path.dirname(eric7.__file__), "icons", "breeze-dark") |
163 svgIconsDir = os.path.join(ericDir, "icons", "breeze-dark") |
163 linuxDir = os.path.join(os.path.dirname(eric7.__file__), "data", "linux") |
164 linuxDir = os.path.join(ericDir, "data", "linux") |
164 |
165 |
165 for metaDir in ["appdata", "metainfo"]: |
166 for metaDir in ["appdata", "metainfo"]: |
166 copyMetaFile( |
167 copyMetaFile( |
167 os.path.join(linuxDir, "eric7.appdata.xml"), |
168 os.path.join(linuxDir, "eric7.appdata.xml"), |
168 os.path.join(dstDir, metaDir), |
169 os.path.join(dstDir, metaDir), |