scripts/install.py

changeset 8260
2161475d9639
parent 8258
82b608e352ec
child 8261
0c2aa0ad149f
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
306 306
307 @param dname name of the directory to place the wrapper into 307 @param dname name of the directory to place the wrapper into
308 @param wfile basename (without extension) of the wrapper script 308 @param wfile basename (without extension) of the wrapper script
309 @return the names of the wrapper scripts 309 @return the names of the wrapper scripts
310 """ 310 """
311 if sys.platform.startswith(("win", "cygwin")): 311 wnames = (
312 wnames = (dname + "\\" + wfile + ".cmd", 312 (dname + "\\" + wfile + ".cmd", dname + "\\" + wfile + ".bat")
313 dname + "\\" + wfile + ".bat") 313 if sys.platform.startswith(("win", "cygwin")) else
314 else: 314 (dname + "/" + wfile, )
315 wnames = (dname + "/" + wfile, ) 315 )
316 316
317 return wnames 317 return wnames
318 318
319 319
320 def createPyWrapper(pydir, wfile, saveDir, isGuiScript=True): 320 def createPyWrapper(pydir, wfile, saveDir, isGuiScript=True):
1236 for apiName in sorted( 1236 for apiName in sorted(
1237 glob.glob(os.path.join(eric6SourceDir, "APIs", 1237 glob.glob(os.path.join(eric6SourceDir, "APIs",
1238 "MicroPython", "*.api"))): 1238 "MicroPython", "*.api"))):
1239 apis.append(os.path.basename(apiName)) 1239 apis.append(os.path.basename(apiName))
1240 1240
1241 if sys.platform == "darwin": 1241 macConfig = (
1242 macConfig = ( 1242 (""" 'macAppBundlePath': r'{0}',\n"""
1243 """ 'macAppBundlePath': r'{0}',\n""" 1243 """ 'macAppBundleName': r'{1}',\n""").format(macAppBundlePath,
1244 """ 'macAppBundleName': r'{1}',\n""" 1244 macAppBundleName)
1245 ).format(macAppBundlePath, macAppBundleName) 1245 if sys.platform == "darwin" else
1246 else: 1246 ""
1247 macConfig = "" 1247 )
1248 config = ( 1248 config = (
1249 """# -*- coding: utf-8 -*-\n""" 1249 """# -*- coding: utf-8 -*-\n"""
1250 """#\n""" 1250 """#\n"""
1251 """# This module contains the configuration of the individual eric""" 1251 """# This module contains the configuration of the individual eric"""
1252 """ installation\n""" 1252 """ installation\n"""

eric ide

mercurial