Commit bf7ffbc0 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

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.
parent 5110ba9b
Pipeline #24825 passed with stages
in 270 minutes and 5 seconds
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment