From bf7ffbc07f639b1e27d6dad576a16b2e5a776173 Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Fri, 26 Jun 2020 14:06:15 +0200 Subject: [PATCH] partial revert of 274e09cd 274e09cd introduced a skip of the generation if the target file is not present. While this might hint a wrong target directory it also prevents the generation of new files. Since the provided mesa_pd.py script asks to confirm the target directory anyway, this skip is removed. --- .gitlab-ci.yml | 2 +- python/mesa_pd/utility.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28ad2c05a..6232e63a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ stages: - ccache --version - mpirun --version - python3 --version - - python3 python/mesa_pd.py -y .. + - python3 python/mesa_pd.py -y . - export CCACHE_BASEDIR=$CI_PROJECT_DIR - mkdir $CI_PROJECT_DIR/build - cd $CI_PROJECT_DIR/build diff --git a/python/mesa_pd/utility.py b/python/mesa_pd/utility.py index 0475b988b..b5a86337d 100644 --- a/python/mesa_pd/utility.py +++ b/python/mesa_pd/utility.py @@ -34,9 +34,6 @@ def generate_file(path, template, context={}, filename=None): if filename == None: filename = template.replace(".templ", "") env = get_jinja_environment() - if not (path / filename).exists(): - print(f"{TerminalColor.YELLOW}skipping: {(path / filename)}{TerminalColor.DEFAULT}") - return print(f"generating: {(path / filename)}") with open(path / filename, "wb") as fout: content = env.get_template(template).render(context) -- GitLab