src/eric7/eric7_post_install.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9346
eda0bdb22e67
child 9380
3d662dda80e8
equal deleted inserted replaced
9376:e143a7e7254b 9377:b9c8dc3b7da1
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),

eric ide

mercurial