Get the path to the editor based on user settings or on PySimpleGUI's global settings :return: Path to the editor :rtype: str
()
| 23424 | |
| 23425 | |
| 23426 | def execute_get_editor(): |
| 23427 | """ |
| 23428 | Get the path to the editor based on user settings or on PySimpleGUI's global settings |
| 23429 | |
| 23430 | :return: Path to the editor |
| 23431 | :rtype: str |
| 23432 | """ |
| 23433 | try: # in case running with old version of PySimpleGUI that doesn't have a global PSG settings path |
| 23434 | global_editor = pysimplegui_user_settings.get('-editor program-') |
| 23435 | except: |
| 23436 | global_editor = '' |
| 23437 | |
| 23438 | return user_settings_get_entry('-editor program-', global_editor) |
| 23439 | |
| 23440 | |
| 23441 | def execute_restart(your_filename, parms=''): |
no test coverage detected