zulip_tools: Add a function to get or create the var uuid path.

This commit is contained in:
Wyatt Hoodes 2019-06-14 10:56:34 -10:00 committed by Tim Abbott
parent ff38d125b1
commit 8e626d3db3
1 changed files with 5 additions and 0 deletions

View File

@ -472,3 +472,8 @@ def get_config_file() -> configparser.RawConfigParser:
def get_deploy_options(config_file):
# type: (configparser.RawConfigParser) -> List[str]
return get_config(config_file, 'deployment', 'deploy_options', "").strip().split()
def get_or_create_dev_uuid_var_path(path: str) -> str:
absolute_path = '{}/{}'.format(get_dev_uuid_var_path(), path)
os.makedirs(absolute_path, exist_ok=True)
return absolute_path