Skip to content
Snippets Groups Projects

feat(spack_operation): implement setup_spack_env functionality

1 unresolved thread
4 files
+ 23
31
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -7,9 +7,9 @@
# Created by: Murugan, Jithu <j.murugan@fz-juelich.de>
# Created on: 2025-02-17
import logging
import os
import subprocess
from logging import Logger
from os import name as os_name
from dedal.commands.command import Command
from dedal.commands.command_sequence import CommandSequence
@@ -29,7 +29,7 @@ class BashCommandExecutor:
"nt": ["wsl", "bash", "-c"], # Works only if wsl is installed on windows
"posix": ["bash", "-c"],
}
self.bash_command: list[str] = command_map.get(os.name, ["undefined"])
self.bash_command: list[str] = command_map.get(os_name, ["undefined"])
def add_command(self, command: Command) -> None:
"""Adds a command to the sequence.