Skip to content

Commit aa7ca98

Browse files
committed
allowing for the user to provide a container:tag instead of container/tag
Signed-off-by: vsoch <[email protected]>
1 parent bd5783c commit aa7ca98

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The versions coincide with releases on pip. Only major versions will be released
1717
- adding namespaces to make module install, show, inspect easier (0.0.24)
1818
- added support for env section to render to bound environment file
1919
- added support for container features like gpu
20+
- allowing for a `container:tag` convention to be used for commands.
2021
- list defaults to showing modules/tags one per line, unless --short used
2122
- container url does not render in docs (0.0.23)
2223
- addition of tcl modules, removal of un-needed database (0.0.22)

shpc/main/modules.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def container_dir(self, name):
7171
"""
7272
Use a custom container directory, otherwise default to module dir.
7373
"""
74+
# If the user provided a tag, tags are converted to folders
75+
if ":" in name:
76+
name = name.replace(":", os.sep)
77+
7478
if not self.settings.container_base:
7579
return os.path.join(self.settings.module_base, name)
7680
return os.path.join(self.settings.container_base, name)

0 commit comments

Comments
 (0)