mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixing compiling of main.js not working when using CALIBRE_DEVELOP_FROM
This commit is contained in:
parent
2ef515b6c0
commit
f4f82d689a
@ -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…
x
Reference in New Issue
Block a user