src/eric7/Project/ProjectFormsBrowser.py

branch
eric7
changeset 9985
4098449deed5
parent 9653
e67609152c5e
child 10113
40eb9038d100
equal deleted inserted replaced
9984:e99fe0e9a1e3 9985:4098449deed5
928 args.append( 928 args.append(
929 "--resource-suffix={0}".format( 929 "--resource-suffix={0}".format(
930 self.project.getProjectData(dataKey="UICPARAMS")["RcSuffix"] 930 self.project.getProjectData(dataKey="UICPARAMS")["RcSuffix"]
931 ) 931 )
932 ) 932 )
933 elif self.project.getProjectLanguage() == "Ruby":
934 self.compiledFile = ofn + ".rb"
935 args.append("-x")
936 933
937 args.append(fn) 934 args.append(fn)
938 self.compileProc.finished.connect(self.__compileUIDone) 935 self.compileProc.finished.connect(self.__compileUIDone)
939 self.compileProc.readyReadStandardOutput.connect(self.__readStdout) 936 self.compileProc.readyReadStandardOutput.connect(self.__readStdout)
940 self.compileProc.readyReadStandardError.connect(self.__readStderr) 937 self.compileProc.readyReadStandardError.connect(self.__readStderr)
1114 1111
1115 ifn = os.path.join(self.project.ppath, fn) 1112 ifn = os.path.join(self.project.ppath, fn)
1116 if self.project.getProjectLanguage() == "Python3": 1113 if self.project.getProjectLanguage() == "Python3":
1117 dirname, filename = os.path.split(os.path.splitext(ifn)[0]) 1114 dirname, filename = os.path.split(os.path.splitext(ifn)[0])
1118 ofn = os.path.join(dirname, "Ui_" + filename + ".py") 1115 ofn = os.path.join(dirname, "Ui_" + filename + ".py")
1119 elif self.project.getProjectLanguage() == "Ruby":
1120 ofn = os.path.splitext(ifn)[0] + ".rb"
1121 if ( 1116 if (
1122 not os.path.exists(ofn) 1117 not os.path.exists(ofn)
1123 or os.stat(ifn).st_mtime > os.stat(ofn).st_mtime 1118 or os.stat(ifn).st_mtime > os.stat(ofn).st_mtime
1124 ): 1119 ):
1125 changedForms.append(fn) 1120 changedForms.append(fn)

eric ide

mercurial