We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527ad6b commit a3538a2Copy full SHA for a3538a2
autoafids/run.py
@@ -26,10 +26,11 @@
26
)
27
28
# Set the conda prefix directory
29
-conda_prefix = str(utils.get_download_dir()) + "/" + "conda"
+conda_prefix = Path(utils.get_download_dir()) / "conda"
30
31
-# Set the environment variable SNAKEMAKE_CONDA_PREFIX
32
-os.environ["SNAKEMAKE_CONDA_PREFIX"] = str(conda_prefix)
+# Set the environment variable SNAKEMAKE_CONDA_PREFIX if not already set
+if not "SNAKEMAKE_CONDA_PREFIX" in os.environ:
33
+ os.environ["SNAKEMAKE_CONDA_PREFIX"] = str(Path(utils.get_download_dir()) / "conda")
34
35
def get_parser():
36
"""Exposes parser for sphinx doc generation, cwd is the docs dir"""
0 commit comments