Project/ProjectSourcesBrowser.py

branch
5_2_x
changeset 1735
f0b1fcdd98cb
parent 1546
240f55bb6e26
child 2025
8bb085c59cd2
child 2303
0ed4ed026c16
equal deleted inserted replaced
1728:47aefd5dc62f 1735:f0b1fcdd98cb
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