646 self.compileProc = QProcess() |
646 self.compileProc = QProcess() |
647 args = [] |
647 args = [] |
648 self.buf = "" |
648 self.buf = "" |
649 |
649 |
650 if self.project.getProjectLanguage() == "Python3": |
650 if self.project.getProjectLanguage() == "Python3": |
651 if self.project.getProjectType() in ["PyQt5", "PyQt5C"]: |
651 if self.project.getProjectType() in ["PyQt5", "PyQt5C", |
652 self.rccCompiler = Utilities.generatePyQtToolPath('pyrcc5') |
652 "E6Plugin"]: |
653 elif self.project.getProjectType() in ["E6Plugin"]: |
|
654 self.rccCompiler = Utilities.generatePyQtToolPath('pyrcc5') |
653 self.rccCompiler = Utilities.generatePyQtToolPath('pyrcc5') |
655 elif self.project.getProjectType() in ["PySide2", "PySide2C"]: |
654 elif self.project.getProjectType() in ["PySide2", "PySide2C"]: |
656 self.rccCompiler = Utilities.generatePySideToolPath( |
655 self.rccCompiler = Utilities.generatePySideToolPath( |
657 'pyside2-rcc', variant=2) |
656 'pyside2-rcc', variant=2) |
658 elif self.project.getProjectType() in ["PySide6", "PySide6C"]: |
657 elif self.project.getProjectType() in ["PySide6", "PySide6C"]: |
871 dirname, self.RCFilenameFormatRuby.format(filename)) |
870 dirname, self.RCFilenameFormatRuby.format(filename)) |
872 else: |
871 else: |
873 return |
872 return |
874 if ( |
873 if ( |
875 not os.path.exists(ofn) or |
874 not os.path.exists(ofn) or |
876 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime |
875 os.stat(ifn).st_mtime > os.stat(ofn).st_mtime or |
|
876 self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime) |
877 ): |
877 ): |
878 changedResources.append(fn) |
|
879 elif self.__checkResourcesNewer(ifn, os.stat(ofn).st_mtime): |
|
880 changedResources.append(fn) |
878 changedResources.append(fn) |
881 progress.setValue(len(self.project.pdata["RESOURCES"])) |
879 progress.setValue(len(self.project.pdata["RESOURCES"])) |
882 QApplication.processEvents() |
880 QApplication.processEvents() |
883 |
881 |
884 if changedResources: |
882 if changedResources: |