scripts/install.py

changeset 8047
b5594178c7fa
parent 7960
e8fc383322f7
child 8060
78aea20be1ec
equal deleted inserted replaced
8045:4d5209dc6eb4 8047:b5594178c7fa
774 cfg['ericCSSDir'], 774 cfg['ericCSSDir'],
775 ['*.css']) 775 ['*.css'])
776 copyTree( 776 copyTree(
777 os.path.join(eric6SourceDir, "Styles"), 777 os.path.join(eric6SourceDir, "Styles"),
778 cfg['ericStylesDir'], 778 cfg['ericStylesDir'],
779 ['*.qss', '*.e4h', '*.e6h']) 779 ['*.qss', '*.e4h', '*.e6h', '*.ehj'])
780 copyTree( 780 copyTree(
781 os.path.join(eric6SourceDir, "i18n"), 781 os.path.join(eric6SourceDir, "i18n"),
782 cfg['ericTranslationsDir'], 782 cfg['ericTranslationsDir'],
783 ['*.qm']) 783 ['*.qm'])
784 copyTree( 784 copyTree(
847 shutilCopy(name, cfg['ericDocDir']) 847 shutilCopy(name, cfg['ericDocDir'])
848 except OSError: 848 except OSError:
849 print("Could not install '{0}'.".format(name)) 849 print("Could not install '{0}'.".format(name))
850 850
851 # copy some more stuff 851 # copy some more stuff
852 for name in ['default.e4k', 'default_Mac.e4k']: 852 # TODO: create the default shortcuts files
853 for name in ('default.ekj', 'default_Mac.ekj',
854 'default.e4k', 'default_Mac.e4k'):
853 try: 855 try:
854 shutilCopy(os.path.join(sourceDir, "others", name), 856 shutilCopy(os.path.join(sourceDir, "others", name),
855 cfg['ericOthersDir']) 857 cfg['ericOthersDir'])
856 except OSError: 858 except OSError:
857 print("Could not install '{0}'.".format( 859 print("Could not install '{0}'.".format(

eric ide

mercurial