foxes.data.static_data.StaticData¶
- class foxes.data.static_data.StaticData[source]¶
Bases:
DataBook
A DataBook filled with static data from this directory.
Methods
__init__
()add_data_package
(context, package, file_sfx)Add static files from a package location.
add_data_package_file
(context, package, ...)Add a static file from a package location.
add_file
(context, file_path)Add a file path
add_files
(context, file_paths)Add file paths
get_file_path
(context, file_name[, ...])Get path of a file
toc
(context)Get list of contents
- add_data_package(context, package, file_sfx)¶
Add static files from a package location.
- add_data_package_file(context, package, file_name)¶
Add a static file from a package location.
- add_file(context, file_path)¶
Add a file path
- add_files(context, file_paths)¶
Add file paths
- get_file_path(context, file_name, check_raw=True, errors=True)¶
Get path of a file
- Parameters:
- Returns:
path – The path
- Return type: