104 Copy a string to a file. |
104 Copy a string to a file. |
105 |
105 |
106 @param name the name of the file. |
106 @param name the name of the file. |
107 @param text the contents to copy to the file. |
107 @param text the contents to copy to the file. |
108 """ |
108 """ |
109 f = open(name,"w") |
109 f = open(name,"w", encoding = "utf-8") |
110 f.write(text) |
110 f.write(text) |
111 f.close() |
111 f.close() |
112 |
112 |
113 |
113 |
114 def wrapperName(dname, wfile): |
114 def wrapperName(dname, wfile): |
205 pdir = os.path.join(cfg['mdir'], "eric5plugins") |
205 pdir = os.path.join(cfg['mdir'], "eric5plugins") |
206 fname = os.path.join(pdir, "__init__.py") |
206 fname = os.path.join(pdir, "__init__.py") |
207 if not os.path.exists(fname): |
207 if not os.path.exists(fname): |
208 if not os.path.exists(pdir): |
208 if not os.path.exists(pdir): |
209 os.mkdir(pdir, 0o755) |
209 os.mkdir(pdir, 0o755) |
210 f = open(fname, "w") |
210 f = open(fname, "w", encoding = "utf-8") |
211 f.write(\ |
211 f.write(\ |
212 '''# -*- coding: utf-8 -*- |
212 '''# -*- coding: utf-8 -*- |
213 |
213 |
214 """ |
214 """ |
215 Package containing the global plugins. |
215 Package containing the global plugins. |