mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:53:06 +02:00
IGN:...
This commit is contained in:
parent
32042325b9
commit
2efa1ec708
1 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,6 @@
|
|||
'''
|
||||
import os, sys, glob
|
||||
sys.path.insert(1, os.path.join(os.getcwd(), 'src'))
|
||||
from calibre import __appname__
|
||||
|
||||
RESOURCES = dict(
|
||||
opf_template = '%p/ebooks/metadata/opf.xml',
|
||||
|
|
@ -19,7 +18,7 @@
|
|||
def main(args=sys.argv):
|
||||
data = ''
|
||||
for key, value in RESOURCES.items():
|
||||
path = value.replace('%p', 'src'+os.sep+__appname__)
|
||||
path = value.replace('%p', 'src'+os.sep+'calibre')
|
||||
bytes = repr(open(path, 'rb').read())
|
||||
data += key + ' = ' + bytes + '\n\n'
|
||||
|
||||
|
|
@ -37,7 +36,7 @@ def main(args=sys.argv):
|
|||
if not translations_found:
|
||||
print 'WARNING: Could not find Qt transations'
|
||||
|
||||
dest = os.path.abspath(os.path.join('src', __appname__, 'resources.py'))
|
||||
dest = os.path.abspath(os.path.join('src', 'calibre', 'resources.py'))
|
||||
print 'Writing resources to', dest
|
||||
open(dest, 'wb').write(data)
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue