mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
template-functions.json skeleton
This commit is contained in:
parent
a3ae3121eb
commit
9e90f63214
1 changed files with 6 additions and 0 deletions
|
|
@ -84,6 +84,12 @@ def run(self, opts):
|
|||
|
||||
cPickle.dump(complete, open(dest, 'wb'), -1)
|
||||
|
||||
self.info('\tCreating template-functions.json')
|
||||
dest = self.j(self.RESOURCES, 'template-functions.json')
|
||||
function_dict = {'test': 'def test(*args): return test'}
|
||||
import json
|
||||
json.dump(function_dict, open(dest, 'wb'))
|
||||
|
||||
def clean(self):
|
||||
for x in ('scripts', 'recipes', 'ebook-convert-complete'):
|
||||
x = self.j(self.RESOURCES, x+'.pickle')
|
||||
|
|
|
|||
Loading…
Reference in a new issue