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 |