mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 09:12:34 -04:00
Fix #914525 (Missing utils/coffeescript file)
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ class Coffee(Command): # {{{
|
||||
help='Display the generated javascript')
|
||||
|
||||
def run(self, opts):
|
||||
from calibre.utils.coffeescript import compile_coffeescript
|
||||
from calibre.utils.serve_coffee import compile_coffeescript
|
||||
self.compiler = compile_coffeescript
|
||||
self.do_coffee_compile(opts)
|
||||
if opts.watch:
|
||||
|
||||
@@ -66,9 +66,10 @@ class Worker(object):
|
||||
if isfrozen:
|
||||
return os.path.join(sys.executables_location, e)
|
||||
|
||||
c = os.path.join(sys.executables_location, e)
|
||||
if os.access(c, os.X_OK):
|
||||
return c
|
||||
if hasattr(sys, 'executables_location'):
|
||||
c = os.path.join(sys.executables_location, e)
|
||||
if os.access(c, os.X_OK):
|
||||
return c
|
||||
return e
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user