src/eric7/PluginManager/PluginManager.py

branch
eric7
changeset 10372
1444b4bee64b
parent 10314
1f7d52f024b1
child 10373
093dcebe5ecb
equal deleted inserted replaced
10371:1f54843e8152 10372:1444b4bee64b
238 try: 238 try:
239 # create the global plugins directory 239 # create the global plugins directory
240 os.mkdir(self.pluginDirs["global"], 0o755) 240 os.mkdir(self.pluginDirs["global"], 0o755)
241 fname = os.path.join(self.pluginDirs["global"], "__init__.py") 241 fname = os.path.join(self.pluginDirs["global"], "__init__.py")
242 with open(fname, "w", encoding="utf-8") as f: 242 with open(fname, "w", encoding="utf-8") as f:
243 f.write("# -*- coding: utf-8 -*-" + "\n") 243 f.write("# -*- coding: utf-8 -*-\n")
244 f.write("\n") 244 f.write("\n")
245 f.write('"""' + "\n") 245 f.write('"""\n')
246 f.write("Package containing the global plugins." + "\n") 246 f.write("Package containing the global plugins.\n")
247 f.write('"""' + "\n") 247 f.write('"""\n')
248 except OSError: 248 except OSError:
249 del self.pluginDirs["global"] 249 del self.pluginDirs["global"]
250 250
251 if not os.path.exists(self.pluginDirs["eric7"]): 251 if not os.path.exists(self.pluginDirs["eric7"]):
252 return ( 252 return (

eric ide

mercurial