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 ( |