()
| 184 | else: |
| 185 | return os.path.join(get_main_dir(), FOLDER_RES) |
| 186 | def edit_config_ini(): |
| 187 | if sys.platform == 'win32': |
| 188 | cmd = 'notepad' |
| 189 | elif sys.platform == 'darwin': |
| 190 | cmd = 'open' |
| 191 | else: |
| 192 | cmd = 'xdg-open' |
| 193 | print(cmd + ' "' + os.path.join(get_data_dir(), CONFIGFILE) + '"') |
| 194 | window.on_close() |
| 195 | import subprocess |
| 196 | subprocess.call((cmd + ' "' + os.path.join(get_data_dir(), CONFIGFILE) + '"'), shell=True) |
| 197 | sys.exit(0) |
| 198 | |
| 199 | def quit_with_error(message='', postmessage='', quit=True, trace=True): |
| 200 | if message: |
no test coverage detected