1888 """ |
1888 """ |
1889 cfgFile = getConfigPath() |
1889 cfgFile = getConfigPath() |
1890 if not os.path.exists(cfgFile): |
1890 if not os.path.exists(cfgFile): |
1891 try: |
1891 try: |
1892 f = open(cfgFile, "w") |
1892 f = open(cfgFile, "w") |
|
1893 f.write("[ui]\nusername = Firstname Lastname <email_address>\n") |
1893 f.close() |
1894 f.close() |
1894 except (IOError, OSError): |
1895 except (IOError, OSError): |
1895 # ignore these |
1896 # ignore these |
1896 pass |
1897 pass |
1897 self.userEditor = MiniEditor(cfgFile, "Properties") |
1898 self.userEditor = MiniEditor(cfgFile, "Properties") |