85 |
85 |
86 from ..GitUserConfigDataDialog import GitUserConfigDataDialog |
86 from ..GitUserConfigDataDialog import GitUserConfigDataDialog |
87 |
87 |
88 cfgFile = self.__plugin.getConfigPath() |
88 cfgFile = self.__plugin.getConfigPath() |
89 if not os.path.exists(cfgFile): |
89 if not os.path.exists(cfgFile): |
90 dlg = GitUserConfigDataDialog() |
90 dlg = GitUserConfigDataDialog(parent=self) |
91 if dlg.exec() == QDialog.DialogCode.Accepted: |
91 if dlg.exec() == QDialog.DialogCode.Accepted: |
92 firstName, lastName, email = dlg.getData() |
92 firstName, lastName, email = dlg.getData() |
93 else: |
93 else: |
94 firstName, lastName, email = ("Firstname", "Lastname", "email_address") |
94 firstName, lastName, email = ("Firstname", "Lastname", "email_address") |
95 with contextlib.suppress(OSError), open(cfgFile, "w") as f: |
95 with contextlib.suppress(OSError), open(cfgFile, "w") as f: |