scripts/install.py

changeset 7717
f32d7965a17e
parent 7716
313e09453306
child 7723
8a33a532fbe9
equal deleted inserted replaced
7716:313e09453306 7717:f32d7965a17e
746 shutilCopy(configName, modDir) 746 shutilCopy(configName, modDir)
747 if os.path.exists(configName + 'c'): 747 if os.path.exists(configName + 'c'):
748 shutilCopy(configName + 'c', modDir) 748 shutilCopy(configName + 'c', modDir)
749 749
750 # copy the various parts of eric6 750 # copy the various parts of eric6
751 # TODO: extend this to include more data file to get rid of .qrc
752 copyTree( 751 copyTree(
753 eric6SourceDir, cfg['ericDir'], 752 eric6SourceDir, cfg['ericDir'],
754 ['*.py', '*.pyc', '*.pyo', '*.pyw'], 753 ['*.py', '*.pyc', '*.pyo', '*.pyw'],
755 [os.path.join(sourceDir, "Examples"), 754 [os.path.join(sourceDir, "Examples"),
756 os.path.join(sourceDir, ".ropeproject")], 755 os.path.join(sourceDir, ".ropeproject")],
789 ['*.tmpl']) 788 ['*.tmpl'])
790 copyTree( 789 copyTree(
791 os.path.join(eric6SourceDir, "CodeTemplates"), 790 os.path.join(eric6SourceDir, "CodeTemplates"),
792 cfg['ericCodeTemplatesDir'], 791 cfg['ericCodeTemplatesDir'],
793 ['*.tmpl']) 792 ['*.tmpl'])
793
794 # copy some data files needed at various places
795 copyTree(
796 os.path.join(eric6SourceDir, "E5Network", "data"),
797 os.path.join(cfg['ericDir'], "E5Network", "data"),
798 ['*.dat', '*.txt'])
799 copyTree(
800 os.path.join(eric6SourceDir, "IconEditor", "cursors"),
801 os.path.join(cfg['ericDir'], "IconEditor", "cursors"),
802 ['*.xpm'])
803 copyTree(
804 os.path.join(eric6SourceDir, "UI", "data"),
805 os.path.join(cfg['ericDir'], "UI", "data"),
806 ['*.css'])
807 copyTree(
808 os.path.join(eric6SourceDir, "WebBrowser"),
809 os.path.join(cfg['ericDir'], "WebBrowser"),
810 ['*.xbel', '*.xml', '*.html', '*.png', '*.gif', '*.js'])
794 811
795 # copy the wrappers 812 # copy the wrappers
796 for wname in wnames: 813 for wname in wnames:
797 shutilCopy(wname, cfg['bindir'], perm=0o755) 814 shutilCopy(wname, cfg['bindir'], perm=0o755)
798 os.remove(wname) 815 os.remove(wname)

eric ide

mercurial