Skip to content
Snippets Groups Projects
Commit bd454c49 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Moved TODO to a more appropriate line

parent 9d6c9838
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,13 @@ import os
def gen_yaml(config_dir, use_cache=True):
# TODO: this method of obtaining the orchestra directory is a hack and is duplicated in environment.py
orchestra_dir = os.path.dirname(os.path.realpath(__file__ + "/.."))
config_cache_dir = f"{orchestra_dir}/.orchestra/config_cache"
if use_cache:
hash_script = f"""find "{config_dir}" -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum"""
config_hash = subprocess.check_output(hash_script, shell=True).decode("utf-8").strip().partition(" ")[0]
# TODO: this method of obtaining the orchestra directory is a hack and is duplicated in environment.py
config_cache_file = f"{config_cache_dir}/{config_hash}.yml"
if os.path.exists(config_cache_file):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment