MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / user_settings_file_exists

Function user_settings_file_exists

PySimpleGUI/PySimpleGUI.py:23062–23076  ·  view source on GitHub ↗

Determines if a settings file exists. If so a boolean True is returned. If either a filename or a path is not included, then the appropriate default will be used. :param filename: Filename to check :type filename: (str) :param path: Path to the file. Defaults to a spe

(filename=None, path=None)

Source from the content-addressed store, hash-verified

23060
23061
23062def user_settings_file_exists(filename=None, path=None):
23063 """
23064 Determines if a settings file exists. If so a boolean True is returned.
23065 If either a filename or a path is not included, then the appropriate default
23066 will be used.
23067
23068 :param filename: Filename to check
23069 :type filename: (str)
23070 :param path: Path to the file. Defaults to a specific folder depending on the operating system
23071 :type path: (str)
23072 :return: True if the file exists
23073 :rtype: (bool)
23074 """
23075 settings = UserSettings._default_for_function_interface
23076 return settings.exists(filename=filename, path=path)
23077
23078
23079def user_settings_write_new_dictionary(settings_dict):

Callers

nothing calls this directly

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected