Skip to content
Snippets Groups Projects
Commit a8ce7a58 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

fix precommit errors

parent 3e5e3e6c
No related branches found
No related tags found
1 merge request!130Resolve "single function to generate all the folders relative to root_dir"
......@@ -188,9 +188,7 @@ def list_installed_toolchains(
for toolchain in toolchains:
plog.info(f" {toolchain}")
lmod_dir = folders["release_base_dir"] / microarch / "lmod/Core"
plog.info(
f" [module use {str(lmod_dir)}]"
)
plog.info(f" [module use {str(lmod_dir)}]")
plog.info("")
return toolchain_map
......@@ -231,7 +229,7 @@ def list_installed_packages(
folders = get_important_folders(mpsd_release, root_dir)
spack_env = folders["spack_dir"] / "share" / "spack" / "setup-env.sh"
commands_to_execute = [
f"export SPACK_ROOT={folders['spack_dir']}", # need to set SPACK_ROOT in dash and sh
f"export SPACK_ROOT={folders['spack_dir']}", # need for POSIX shell
f". {spack_env}",
f"spack -e {package_set}"
" find --format "
......
......@@ -137,7 +137,7 @@ def get_important_folders(
root_dir: Path,
):
"""
Returns a dictionary of important folders for scripts.
Return a dictionary of important folders for scripts.
Parameters
----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment