_load
Full documentation pages are generated for docstring
reference only and may contain symbols imported from other
modules. Imported symbols are not distinguished from locally
defined symbols and will appear in any module that they are
imported into. For better information on where symbols should
be imported from, review the sourcecode on the
github.
FoSpy.config._load
get_default_file
Source code in FoSpy/config/_load.py
| def get_default_file():
return pkg_resources.files(__package__).joinpath("defaults.json")
|
get_enforced_file
Source code in FoSpy/config/_load.py
| def get_enforced_file():
file = pkg_resources.files(__package__).joinpath("enforced.json")
return file
|
get_user_file
Source code in FoSpy/config/_load.py
| def get_user_file():
file = pkg_resources.files(__package__).joinpath("user.json")
if not os.path.exists(file):
with open(file, "w") as f:
f.write("{}")
return file
|