Filepaths¶
Functions to help locate data to import on disk.
Create
pathlib.Path
for a file containing XML or JSON to load as objects.- Parameters
filename (
Optional
[str
]) – just the name of the file, without the directory.directory (
Optional
[Path
]) – just the directory, without the pathfilepath (
Optional
[Path
]) – a full path that just needs to be checked for validity and returneddefault_folder (
str
) – a folder name to use in constructing a missing directory path
- Returns
the path to the desired file
Find a data directory for importing files.
Only in this module temporarily to prevent a circular import.