mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-05-24 02:02:32 -04:00
pep8
This commit is contained in:
parent
52accf284a
commit
04642ffda9
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
import ast
|
||||
@ -17,7 +16,7 @@ if False:
|
||||
dmg = sys.argv[-1]
|
||||
mp = tempfile.mkdtemp()
|
||||
atexit.register(os.rmdir, mp)
|
||||
subprocess.check_call('hdiutil attach {} -mountpoint {}'.format(dmg, mp).split())
|
||||
subprocess.check_call(f'hdiutil attach {dmg} -mountpoint {mp}'.split())
|
||||
try:
|
||||
os.chdir(mp)
|
||||
for app in glob.glob('*.app'):
|
||||
@ -27,7 +26,7 @@ if False:
|
||||
subprocess.check_call('ditto -v {} {}'.format(app, os.path.join('/Applications', app)).split())
|
||||
finally:
|
||||
os.chdir('/')
|
||||
subprocess.check_call('hdiutil detach {}'.format(mp).split())
|
||||
subprocess.check_call(f'hdiutil detach {mp}'.split())
|
||||
|
||||
# EOF_REMOTE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user