Skip to content

Commit

Permalink
Merge branch 'master' into fix-heatmaps-always-created
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 authored May 23, 2024
2 parents 686825c + 943ca80 commit 9599f5d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions seqnado/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ def cli_pipeline(
]
)

# Home directory symlinks cause issues with singularity bind mounts
# to avoid this will change directory to the full resolved path of the current directory
cwd = pathlib.Path.cwd().resolve().absolute()
os.chdir(cwd)


elif preset == "ls":
cmd.extend(
[
Expand All @@ -208,4 +202,16 @@ def cli_pipeline(

print(logo)

completed = subprocess.run(cmd)


# Home directory symlinks cause issues with singularity bind mounts
# to avoid this will change directory to the full resolved path of the current directory
cwd = str(pathlib.Path(".").resolve())
os.chdir(cwd)
os.environ["PWD"] = cwd
completed = subprocess.run(cmd, cwd=cwd)

if completed.returncode != 0:
sys.exit(completed.returncode)
else:
sys.exit(0)

0 comments on commit 9599f5d

Please sign in to comment.