750 if self.project.getProjectLanguage() in \ |
750 if self.project.getProjectLanguage() in \ |
751 ["Python", "Python2", "Python3"]: |
751 ["Python", "Python2", "Python3"]: |
752 if self.project.getProjectType() in ["Qt4", ]: |
752 if self.project.getProjectType() in ["Qt4", ]: |
753 self.uicompiler = 'pyuic4' |
753 self.uicompiler = 'pyuic4' |
754 if Utilities.isWindowsPlatform(): |
754 if Utilities.isWindowsPlatform(): |
755 uic = self.uicompiler + '.bat' |
755 uic = Utilities.getWindowsExecutablePath(self.uicompiler) |
756 else: |
756 else: |
757 uic = self.uicompiler |
757 uic = self.uicompiler |
758 elif self.project.getProjectType() in ["PyQt5"]: |
758 elif self.project.getProjectType() in ["PyQt5"]: |
759 self.uicompiler = 'pyuic5' |
759 self.uicompiler = 'pyuic5' |
760 if Utilities.isWindowsPlatform(): |
760 if Utilities.isWindowsPlatform(): |
761 uic = self.uicompiler + '.bat' |
761 uic = Utilities.getWindowsExecutablePath(self.uicompiler) |
762 else: |
762 else: |
763 uic = self.uicompiler |
763 uic = self.uicompiler |
764 elif self.project.getProjectType() in ["E6Plugin"]: |
764 elif self.project.getProjectType() in ["E6Plugin"]: |
765 if PYQT_VERSION < 0x050000: |
765 if PYQT_VERSION < 0x050000: |
766 self.uicompiler = 'pyuic4' |
766 self.uicompiler = 'pyuic4' |
767 else: |
767 else: |
768 self.uicompiler = 'pyuic5' |
768 self.uicompiler = 'pyuic5' |
769 if Utilities.isWindowsPlatform(): |
769 if Utilities.isWindowsPlatform(): |
770 uic = self.uicompiler + '.bat' |
770 uic = Utilities.getWindowsExecutablePath(self.uicompiler) |
771 else: |
771 else: |
772 uic = self.uicompiler |
772 uic = self.uicompiler |
773 elif self.project.getProjectType() == "PySide": |
773 elif self.project.getProjectType() == "PySide": |
774 self.uicompiler = 'pyside-uic' |
774 self.uicompiler = 'pyside-uic' |
775 uic = Utilities.generatePySideToolPath(self.uicompiler) |
775 uic = Utilities.generatePySideToolPath(self.uicompiler) |
777 return None |
777 return None |
778 elif self.project.getProjectLanguage() == "Ruby": |
778 elif self.project.getProjectLanguage() == "Ruby": |
779 if self.project.getProjectType() == "Qt4": |
779 if self.project.getProjectType() == "Qt4": |
780 self.uicompiler = 'rbuic4' |
780 self.uicompiler = 'rbuic4' |
781 if Utilities.isWindowsPlatform(): |
781 if Utilities.isWindowsPlatform(): |
782 uic = self.uicompiler + '.exe' |
782 uic = Utilities.getWindowsExecutablePath(self.uicompiler) |
783 else: |
783 else: |
784 uic = self.uicompiler |
784 uic = self.uicompiler |
785 else: |
785 else: |
786 return None |
786 return None |
787 else: |
787 else: |