Project/ProjectSourcesBrowser.py

changeset 1734
a29e0271ff3d
parent 1546
240f55bb6e26
child 2025
8bb085c59cd2
child 2303
0ed4ed026c16
equal deleted inserted replaced
1733:231e6f05d274 1734:a29e0271ff3d
624 for name in nameParts: 624 for name in nameParts:
625 packagePath = os.path.join(packagePath, name) 625 packagePath = os.path.join(packagePath, name)
626 if not os.path.exists(packagePath): 626 if not os.path.exists(packagePath):
627 try: 627 try:
628 os.mkdir(packagePath) 628 os.mkdir(packagePath)
629 except IOError as err: 629 except OSError as err:
630 E5MessageBox.critical(self, 630 E5MessageBox.critical(self,
631 self.trUtf8("Add new Python package"), 631 self.trUtf8("Add new Python package"),
632 self.trUtf8("""<p>The package directory <b>{0}</b> could""" 632 self.trUtf8("""<p>The package directory <b>{0}</b> could"""
633 """ not be created. Aborting...</p>""" 633 """ not be created. Aborting...</p>"""
634 """<p>Reason: {1}</p>""")\ 634 """<p>Reason: {1}</p>""")\

eric ide

mercurial