166 packageFile = os.path.join(packagePath, "__init__.py") |
166 packageFile = os.path.join(packagePath, "__init__.py") |
167 if not os.path.exists(packageFile): |
167 if not os.path.exists(packageFile): |
168 try: |
168 try: |
169 with open(packageFile, "w", encoding="utf-8"): |
169 with open(packageFile, "w", encoding="utf-8"): |
170 pass |
170 pass |
171 except IOError as err: |
171 except OSError as err: |
172 E5MessageBox.critical( |
172 E5MessageBox.critical( |
173 self, |
173 self, |
174 self.tr("Create Package"), |
174 self.tr("Create Package"), |
175 self.tr( |
175 self.tr( |
176 """<p>The package file <b>{0}</b> could""" |
176 """<p>The package file <b>{0}</b> could""" |