1885 def hgEditUserConfig(self): |
1885 def hgEditUserConfig(self): |
1886 """ |
1886 """ |
1887 Public method used to edit the user configuration file. |
1887 Public method used to edit the user configuration file. |
1888 """ |
1888 """ |
1889 cfgFile = getConfigPath() |
1889 cfgFile = getConfigPath() |
|
1890 if not os.path.exists(cfgFile): |
|
1891 try: |
|
1892 f = open(cfgFile, "w") |
|
1893 f.close() |
|
1894 except (IOError, OSError): |
|
1895 # ignore these |
|
1896 pass |
1890 self.userEditor = MiniEditor(cfgFile, "Properties") |
1897 self.userEditor = MiniEditor(cfgFile, "Properties") |
1891 self.userEditor.show() |
1898 self.userEditor.show() |
1892 |
1899 |
1893 def hgEditConfig(self, name): |
1900 def hgEditConfig(self, name): |
1894 """ |
1901 """ |