Project/PropertiesDialog.py

changeset 248
f4561c24989a
parent 83
b302c5816c1c
child 250
332afc99e9fa
equal deleted inserted replaced
247:b3da30a52337 248:f4561c24989a
234 else: 234 else:
235 self.project.pfile = "" 235 self.project.pfile = ""
236 self.project.pdata["VERSION"] = [self.versionEdit.text()] 236 self.project.pdata["VERSION"] = [self.versionEdit.text()]
237 fn = self.mainscriptEdit.text() 237 fn = self.mainscriptEdit.text()
238 if fn: 238 if fn:
239 fn = fn.replace(self.project.ppath+os.sep, "") 239 fn = self.project.getRelativePath(fn2)
240 self.project.pdata["MAINSCRIPT"] = [fn] 240 self.project.pdata["MAINSCRIPT"] = [fn]
241 self.project.translationsRoot = os.path.splitext(fn)[0] 241 self.project.translationsRoot = os.path.splitext(fn)[0]
242 else: 242 else:
243 self.project.pdata["MAINSCRIPT"] = [] 243 self.project.pdata["MAINSCRIPT"] = []
244 self.project.translationsRoot = "" 244 self.project.translationsRoot = ""

eric ide

mercurial