Project/Project.py

branch
5_2_x
changeset 1962
83c766a02142
parent 1866
91cfb0c311cb
child 2283
9d75b64621e0
equal deleted inserted replaced
1959:d43688d6aef2 1962:83c766a02142
1889 os.makedirs(mgmtDir) 1889 os.makedirs(mgmtDir)
1890 1890
1891 try: 1891 try:
1892 ms = os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0]) 1892 ms = os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0])
1893 if not os.path.exists(ms): 1893 if not os.path.exists(ms):
1894 f = open(ms, "w") 1894 try:
1895 f.close() 1895 f = open(ms, "w")
1896 f.close()
1897 except IOError:
1898 # silently ignore it
1899 pass
1896 self.appendFile(ms) 1900 self.appendFile(ms)
1897 except IndexError: 1901 except IndexError:
1898 ms = "" 1902 ms = ""
1899 1903
1900 # add existing files to the project 1904 # add existing files to the project

eric ide

mercurial