diff --git a/milatools/cli/commands.py b/milatools/cli/commands.py index d2b0cac4..03cda60d 100644 --- a/milatools/cli/commands.py +++ b/milatools/cli/commands.py @@ -304,6 +304,11 @@ def code(): node_name = data["node_name"] + if not path.startswith("/"): + # Get $HOME because we have to give the full path to code + home = remote.home() + path = "/".join([home, path]) + try: while True: here.run( @@ -408,8 +413,7 @@ def list(): necessary_keys = {"node_name", "to_forward"} if any(k not in info for k in necessary_keys): qn.print( - f"{identifier} ({program}, MISSING INFO)", - style="bold red", + f"{identifier} ({program}, MISSING INFO)", style="bold red" ) to_purge.append((identifier, jobid)) else: