From 110bf0fa6059a5d67375ec1dd65510a82e36037f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 11 Mar 2018 10:18:13 +0200 Subject: Fix Python 2 compat --- machammer/functions.py | 4 ++-- 1 file 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) -- cgit v1.2.3