MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / execute_py_get_interpreter

Function execute_py_get_interpreter

PySimpleGUI/PySimpleGUI.py:23246–23258  ·  view source on GitHub ↗

Returns Python Interpreter from the system settings. If none found in the settings file then the currently running interpreter is returned. :return: Full path to python interpreter (uses settings file or sys.executable) :rtype: (str)

()

Source from the content-addressed store, hash-verified

23244
23245
23246def execute_py_get_interpreter():
23247 """
23248 Returns Python Interpreter from the system settings. If none found in the settings file
23249 then the currently running interpreter is returned.
23250
23251 :return: Full path to python interpreter (uses settings file or sys.executable)
23252 :rtype: (str)
23253 """
23254 pysimplegui_user_settings.load() # Refresh the settings just in case they've changed via another program
23255 interpreter = pysimplegui_user_settings.get('-python command-', '')
23256 if interpreter == '':
23257 interpreter = sys.executable
23258 return interpreter
23259
23260
23261def execute_py_get_running_interpreter():

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected