diff options
Diffstat (limited to 'machammer/functions.py')
-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 8ae0183..0031e61 100644 --- a/machammer/functions.py +++ b/machammer/functions.py @@ -146,10 +146,10 @@ def is_desktop(): return not is_laptop() -def mount_image(path): +def mount_image(path, mp=None): """Mount disk image and return path to mountpoint.""" logging.debug('Mounting DMG %s' % path) - mp = tempfile.mkdtemp() + mp = mp or tempfile.mkdtemp() p = subprocess.Popen(['/usr/bin/hdiutil', 'mount', '-mountpoint', mp, '-nobrowse', path], |