58 def on_configButton_clicked(self): |
60 def on_configButton_clicked(self): |
59 """ |
61 """ |
60 Private slot to edit the (per user) Mercurial configuration file. |
62 Private slot to edit the (per user) Mercurial configuration file. |
61 """ |
63 """ |
62 cfgFile = self.__plugin.getConfigPath() |
64 cfgFile = self.__plugin.getConfigPath() |
|
65 if not os.path.exists(cfgFile): |
|
66 try: |
|
67 f = open(cfgFile, "w") |
|
68 f.close() |
|
69 except (IOError, OSError): |
|
70 # ignore these |
|
71 pass |
63 editor = MiniEditor(cfgFile, "Properties", self) |
72 editor = MiniEditor(cfgFile, "Properties", self) |
64 editor.show() |
73 editor.show() |