MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / edit_config_ini

Function edit_config_ini

brainworkshop.py:186–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 else:
185 return os.path.join(get_main_dir(), FOLDER_RES)
186def 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
199def quit_with_error(message='', postmessage='', quit=True, trace=True):
200 if message:

Callers 1

on_key_pressFunction · 0.85

Calls 1

get_data_dirFunction · 0.85

Tested by

no test coverage detected