From f4f82d689aaea282d65c1f1493a4390d53bee868 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Feb 2016 17:42:54 +0530 Subject: [PATCH] Fixing compiling of main.js not working when using CALIBRE_DEVELOP_FROM --- src/calibre/utils/rapydscript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/rapydscript.py b/src/calibre/utils/rapydscript.py index be9c738271..339694dd69 100644 --- a/src/calibre/utils/rapydscript.py +++ b/src/calibre/utils/rapydscript.py @@ -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')) # }}}