Skip to content

Commit eae9eb4

Browse files
PauloMigAlmeidaPaulo Almeida
and
Paulo Almeida
authored
Handle ~ expansion when specifying bind volumes (#52)
* Handle ~ expansion when specifying bind volumes Co-authored-by: Paulo Almeida <[email protected]>
1 parent 5d2b3d1 commit eae9eb4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pypi.
1515

1616
## [0.0.x](https://github.com/singularityhub/singularity-compose/tree/master) (0.0.x)
17+
- bind volumes can handle tilde expansion (0.0.14)
1718
- fix module import used by check command (0.0.13)
1819
- adding jsonschema validation and check command (0.0.12)
1920
- implement configuration override feature

scompose/project/instance.py

+1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def _get_bind_commands(self):
216216
binds = []
217217
for volume in self.volumes:
218218
src, dest = volume.split(":")
219+
src = os.path.expanduser(src)
219220

220221
# First try, assume file in root folder
221222
if not os.path.exists(os.path.abspath(src)):

scompose/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
"""
1010

11-
__version__ = "0.1.13"
11+
__version__ = "0.1.14"
1212
AUTHOR = "Vanessa Sochat"
1313
AUTHOR_EMAIL = "[email protected]"
1414
NAME = "singularity-compose"

0 commit comments

Comments
 (0)