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