QScintilla/Editor.py

branch
5_1_x
changeset 995
cd875a519a3a
parent 987
156472e165f4
child 1113
95d837803666
equal deleted inserted replaced
987:156472e165f4 995:cd875a519a3a
2455 if saveas or self.fileName is None: 2455 if saveas or self.fileName is None:
2456 saveas = True 2456 saveas = True
2457 2457
2458 # save to project, if a project is loaded 2458 # save to project, if a project is loaded
2459 if self.project.isOpen(): 2459 if self.project.isOpen():
2460 path = self.project.getProjectPath() 2460 if self.fileName is not None and \
2461 self.project.startswithProjectPath(self.fileName):
2462 path = os.path.dirname(self.fileName)
2463 else:
2464 path = self.project.getProjectPath()
2461 2465
2462 if not path and self.fileName is not None: 2466 if not path and self.fileName is not None:
2463 path = os.path.dirname(self.fileName) 2467 path = os.path.dirname(self.fileName)
2464 if path is None: 2468 if path is None:
2465 path = "" 2469 path = ""

eric ide

mercurial