src/eric7/Project/ProjectFormsBrowser.py

branch
eric7
changeset 9387
ce743c468d09
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9386:5b95a970a2d0 9387:ce743c468d09
907 907
908 # change environment 908 # change environment
909 sys.path.insert(0, self.project.getProjectPath()) 909 sys.path.insert(0, self.project.getProjectPath())
910 cwd = os.getcwd() 910 cwd = os.getcwd()
911 os.chdir(os.path.dirname(os.path.abspath(fn))) 911 os.chdir(os.path.dirname(os.path.abspath(fn)))
912 912 try:
913 dlg = CreateDialogCodeDialog(fn, self.project, self) 913 dlg = CreateDialogCodeDialog(fn, self.project, self)
914 if not dlg.initError(): 914 if not dlg.initError():
915 dlg.exec() 915 dlg.exec()
916 916 finally:
917 # reset the environment 917 # reset the environment
918 os.chdir(cwd) 918 os.chdir(cwd)
919 del sys.path[0] 919 del sys.path[0]
920 920
921 def __compileForm(self): 921 def __compileForm(self):
922 """ 922 """
923 Private method to compile a form to a source file. 923 Private method to compile a form to a source file.
924 """ 924 """

eric ide

mercurial