isomer.misc.path module¶
-
get_etc_instance_path
()[source]¶ Get currently set instance configurations base path, e.g. /etc/isomer/instances/
-
get_path
(location: str, subfolder: str, ensure: bool = False, instance: str = '', environment: str = '')[source]¶ Return a normalized path for the running instance and environment
Parameters: - location (
str
) – Either cache, local or lib - all reside in /var - subfolder (
str
) – Subfolder inside location - ensure (
bool
) – Create the folder, if it doesn’t exist and this parameter is True - instance (
str
) – Temporarily override to get at another instance’s folder - environment (
str
) – Temporarily override to pick a specific environment
- location (