eric6/Plugins/PluginWizardEricPlugin.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
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"""

eric ide

mercurial