Skip to content

Commit ef84921

Browse files
committed
Fixed directory issues for conda
1 parent 5d1f813 commit ef84921

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/add_ref_mat.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
REQUESTS_TIMEOUT = 60
2222
SLEEP_BETWEEN = 0.34
2323

24-
ROOT_PATHOGENS_DIR = os.path.normpath(
25-
os.path.join(os.path.dirname(__file__), "../data", "pathogens_for_wepp")
26-
)
24+
ROOT_PATHOGENS_DIR = os.path.join(os.getcwd(), "data", "pathogens_for_wepp")
2725

2826
NCBI_BASE = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"
2927

@@ -499,7 +497,7 @@ def main():
499497
"At least one pathogen with a MAT is required for the pipeline to run.\n\n"
500498
)
501499
else:
502-
print("\n[INFO] Setup complete. Pathogen data is ready.")
500+
print("\n[INFO] Setup complete. Pathogen data is ready.\n\n")
503501

504502

505503
if __name__ == "__main__":

0 commit comments

Comments
 (0)