Paths
Tessif’s most used paths.
paths is a tessif subpackage aggregating
frequently used path implementations for conveniently accessing utilities and
data coming with tessif.
- tessif.frused.paths.find_subpath_incwd(path, includes=('tessif',), excludes=('.git',))[source]
Find location of given path.
Credit to: https://stackoverflow.com/a/41546830
Note
To make this utility work os independently it is advised to supply path using
os.path.join().- Parameters
path¶ (str) – String representation of the directory/file to find the path for. Supplying this paremter us ing
os.path.join()makes this utility platform independentincludes¶ (
Iterable, str) – String or iterable of strings that should be part of the found path.exludes¶ (
Iterable, str) – String or iterable of strings that should not be part of the found path.
- Returns
found_paths – List of found paths
- Return type
- tessif.frused.paths.root_dir = '/home/docs/checkouts/readthedocs.org/user_builds/tessif/checkouts/latest/src/tessif'
Tessif’s root directory.