Skip to content
Snippets Groups Projects
Commit 6227e730 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

fix: remove output file if exists directly in the script

parent 97def49c
No related branches found
No related tags found
No related merge requests found
Pipeline #120002 passed
...@@ -178,6 +178,8 @@ def systems( ...@@ -178,6 +178,8 @@ def systems(
with open(pfam, "r") as pf: with open(pfam, "r") as pf:
pfam_df = pd.read_csv(pf, index_col="AC", keep_default_na=False) pfam_df = pd.read_csv(pf, index_col="AC", keep_default_na=False)
systems = [] systems = []
if (output.exists()):
output.unlink()
with open(output, "a") as ty: with open(output, "a") as ty:
for file in dir.iterdir(): for file in dir.iterdir():
if file.suffix == ".md": if file.suffix == ".md":
......
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