mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:53:06 +02:00
Fixing compiling of main.js not working when using CALIBRE_DEVELOP_FROM
This commit is contained in:
parent
2ef515b6c0
commit
f4f82d689a
1 changed files with 2 additions and 1 deletions
|
|
@ -104,7 +104,8 @@ def compile_srv():
|
|||
fname = os.path.join(rapydscript_dir, 'srv.pyj')
|
||||
with open(fname, 'rb') as f:
|
||||
raw = compile_pyj(f.read(), fname)
|
||||
with open(P('content-server/main.js', allow_user_override=False), 'wb') as f:
|
||||
base = P('content-server', allow_user_override=False)
|
||||
with open(os.path.join(base, 'main.js'), 'wb') as f:
|
||||
f.write(raw.encode('utf-8'))
|
||||
|
||||
# }}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue