diff options
author | Filipp Lepalaan <filipp@mac.com> | 2018-03-11 10:18:13 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2018-03-11 10:18:13 +0200 |
commit | 110bf0fa6059a5d67375ec1dd65510a82e36037f (patch) | |
tree | 465180e1a56d0b1729f158560db2cc8a4d3b07fa | |
parent | dc181c65bee13fcf43ceac5bd41b3cdd70e9033a (diff) | |
download | machammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.tar.gz machammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.tar.bz2 machammer-110bf0fa6059a5d67375ec1dd65510a82e36037f.zip |
Fix Python 2 compat
-rw-r--r-- | machammer/functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/machammer/functions.py b/machammer/functions.py index 326918d..2bcde3f 100644 --- a/machammer/functions.py +++ b/machammer/functions.py @@ -153,9 +153,9 @@ def mount_image(path, mp=None, *args): raise Exception('Invalid path: %s' % path) mp = mp or tempfile.mkdtemp() - p = subprocess.Popen(['/usr/bin/hdiutil', 'mount', + p = subprocess.Popen(('/usr/bin/hdiutil', 'mount', '-mountpoint', mp, - '-nobrowse', path, *args], + '-nobrowse', path) + args, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) |