install.py

changeset 3003
cb43c34239b1
parent 2992
dbdf27746da5
child 3019
7912530a33e2
child 3057
10516539f238
equal deleted inserted replaced
3002:6ffc581f00f1 3003:cb43c34239b1
385 path, ext = os.path.splitext(e5cfile) 385 path, ext = os.path.splitext(e5cfile)
386 for f in glob.glob("{0}.*{1}".format(path, ext)): 386 for f in glob.glob("{0}.*{1}".format(path, ext)):
387 os.remove(f) 387 os.remove(f)
388 388
389 # Cleanup the install directories 389 # Cleanup the install directories
390 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir', 390 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir',
391 'ericIconDir', 'ericPixDir', 'ericTemplatesDir', 391 'ericCSSDir', 'ericIconDir', 'ericPixDir',
392 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir', 392 'ericTemplatesDir', 'ericCodeTemplatesDir',
393 'ericDir']: 393 'ericOthersDir', 'ericStylesDir', 'ericDir']:
394 if os.path.exists(getConfig(name)): 394 if os.path.exists(getConfig(name)):
395 shutil.rmtree(getConfig(name), True) 395 shutil.rmtree(getConfig(name), True)
396 396
397 # Cleanup translations 397 # Cleanup translations
398 for name in glob.glob( 398 for name in glob.glob(
494 shutilCopy(configName, modDir) 494 shutilCopy(configName, modDir)
495 if os.path.exists(configName + 'c'): 495 if os.path.exists(configName + 'c'):
496 shutilCopy(configName + 'c', modDir) 496 shutilCopy(configName + 'c', modDir)
497 497
498 # copy the various parts of eric5 498 # copy the various parts of eric5
499 copyTree(sourceDir, cfg['ericDir'], ['*.py', '*.pyc', '*.pyo', '*.pyw'], 499 copyTree(sourceDir, cfg['ericDir'],
500 ['*.py', '*.pyc', '*.pyo', '*.pyw'],
500 ['{1}{0}Examples'.format(os.sep, sourceDir)], 501 ['{1}{0}Examples'.format(os.sep, sourceDir)],
501 excludePatterns=["eric5config.py*"]) 502 excludePatterns=["eric5config.py*"])
502 copyTree(sourceDir, cfg['ericDir'], ['*.rb'], 503 copyTree(sourceDir, cfg['ericDir'], ['*.rb'],
503 ['{1}{0}Examples'.format(os.sep, sourceDir)]) 504 ['{1}{0}Examples'.format(os.sep, sourceDir)])
504 copyTree('{1}{0}Plugins'.format(os.sep, sourceDir), 505 copyTree('{1}{0}Plugins'.format(os.sep, sourceDir),

eric ide

mercurial