Project/ProjectResourcesBrowser.py

changeset 1173
c826cd21e273
parent 1140
8d1aa04a8f62
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1172:a183f45d3553 1173:c826cd21e273
552 self.buf = "" 552 self.buf = ""
553 553
554 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2", "Python3"]: 554 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2", "Python3"]:
555 if self.project.getProjectType() in ["Qt4", "E4Plugin"]: 555 if self.project.getProjectType() in ["Qt4", "E4Plugin"]:
556 self.rccCompiler = 'pyrcc4' 556 self.rccCompiler = 'pyrcc4'
557 if Utilities.isWindowsPlatform():
558 self.rccCompiler += '.exe'
557 if PYQT_VERSION >= 0x040500: 559 if PYQT_VERSION >= 0x040500:
558 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: 560 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]:
559 args.append("-py2") 561 args.append("-py2")
560 else: 562 else:
561 args.append("-py3") 563 args.append("-py3")
562 elif self.project.getProjectType() == "PySide": 564 elif self.project.getProjectType() == "PySide":
563 self.rccCompiler = 'pyside-rcc' 565 self.rccCompiler = Utilities.generatePySideToolPath('pyside-rcc')
564 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: 566 if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]:
565 args.append("-py2") 567 args.append("-py2")
566 else: 568 else:
567 args.append("-py3") 569 args.append("-py3")
568 else: 570 else:
569 return None 571 return None
570 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": 572 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby":
571 if self.project.getProjectType() == "Qt4": 573 if self.project.getProjectType() == "Qt4":
572 self.rccCompiler = 'rbrcc' 574 self.rccCompiler = 'rbrcc'
575 if Utilities.isWindowsPlatform():
576 self.rccCompiler += '.exe'
573 else: 577 else:
574 return None 578 return None
575 else: 579 else:
576 return None 580 return None
577 581
578 rcc = self.rccCompiler 582 rcc = self.rccCompiler
579 if Utilities.isWindowsPlatform():
580 rcc = rcc + '.exe'
581 583
582 ofn, ext = os.path.splitext(fn) 584 ofn, ext = os.path.splitext(fn)
583 fn = os.path.join(self.project.ppath, fn) 585 fn = os.path.join(self.project.ppath, fn)
584 586
585 dirname, filename = os.path.split(ofn) 587 dirname, filename = os.path.split(ofn)

eric ide

mercurial