2585 ms = os.path.join(self.ppath, self.__pdata["MAINSCRIPT"]) |
2585 ms = os.path.join(self.ppath, self.__pdata["MAINSCRIPT"]) |
2586 else: |
2586 else: |
2587 ms = self.__pdata["MAINSCRIPT"] |
2587 ms = self.__pdata["MAINSCRIPT"] |
2588 if not os.path.exists(ms): |
2588 if not os.path.exists(ms): |
2589 try: |
2589 try: |
2590 os.makedirs(os.path.dirname(ms)) |
2590 os.makedirs(os.path.dirname(ms), exist_ok=True) |
2591 with open(ms, "w"): |
2591 with open(ms, "w"): |
2592 pass |
2592 pass |
2593 except OSError as err: |
2593 except OSError as err: |
2594 EricMessageBox.critical( |
2594 EricMessageBox.critical( |
2595 self.ui, |
2595 self.ui, |
2610 mf = os.path.join(self.ppath, mf) |
2610 mf = os.path.join(self.ppath, mf) |
2611 else: |
2611 else: |
2612 mf = os.path.join(self.ppath, Project.DefaultMakefile) |
2612 mf = os.path.join(self.ppath, Project.DefaultMakefile) |
2613 if not os.path.exists(mf): |
2613 if not os.path.exists(mf): |
2614 try: |
2614 try: |
2615 os.makedirs(os.path.dirname(mf)) |
2615 os.makedirs(os.path.dirname(mf), exist_ok=True) |
2616 with open(mf, "w"): |
2616 with open(mf, "w"): |
2617 pass |
2617 pass |
2618 except OSError as err: |
2618 except OSError as err: |
2619 EricMessageBox.critical( |
2619 EricMessageBox.critical( |
2620 self.ui, |
2620 self.ui, |