june.paths¶
-
june.paths.
find_default
(name: str) → pathlib.Path¶ Get a default path when no command line argument is passed.
First attempt to find the folder in the current working directory.
If it is not found there then try the directory in which June lives.
Finally, try the directory above the current working directory. This
is for the build pipeline.
This means that tests will find the configuration regardless of whether they are run together or individually.
- name
The name of some folder
The full path to that directory
-
june.paths.
path_for_name
(name: str) → pathlib.Path¶ Get a path input using a flag when the program is run.
If no such argument is given default to the directory above the june with the name of the flag appended.
e.g. –data indicates where the data folder is and defaults to june/../data
- name
A string such as “data” which corresponds to the flag –data
A path