Project/ProjectResourcesBrowser.py

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

eric ide

mercurial