mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cea4b065d0
commit
8018891656
@ -290,6 +290,7 @@ class Resources(Command): # {{{
|
||||
sub_commands = ['kakasi', 'coffee', 'rapydscript']
|
||||
|
||||
def run(self, opts):
|
||||
from calibre.utils.serialize import msgpack_dumps
|
||||
scripts = {}
|
||||
for x in ('console', 'gui'):
|
||||
for name in basenames[x]:
|
||||
@ -300,7 +301,6 @@ class Resources(Command): # {{{
|
||||
dest = self.j(self.RESOURCES, 'scripts.calibre_msgpack')
|
||||
if self.newer(dest, self.j(self.SRC, 'calibre', 'linux.py')):
|
||||
self.info('\tCreating ' + os.path.basename(dest))
|
||||
from calibre.utils.serialize import msgpack_dumps
|
||||
with open(dest, 'wb') as f:
|
||||
f.write(msgpack_dumps(scripts))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user