From 4ed951aeeac83a26c46cb3a015d4390878d94b17 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 May 2012 09:02:51 +0530 Subject: [PATCH] ... --- src/calibre/utils/resources.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/calibre/utils/resources.py b/src/calibre/utils/resources.py index d053136204..711fb69fef 100644 --- a/src/calibre/utils/resources.py +++ b/src/calibre/utils/resources.py @@ -93,16 +93,8 @@ def compiled_coffeescript(name, dynamic=False): else: import zipfile zipf = get_path('compiled_coffeescript.zip', allow_user_override=False) - try: - with zipfile.ZipFile(zipf, 'r') as zf: - return zf.read(name+'.js') - except EnvironmentError: - # zipfile does not exist, probably someone running with - # CALIBRE_DEVELOP_FROM and an outdated binary install, so try to - # compile from source - if os.path.exists(zipf): raise - return _compile_coffeescript(name) - + with zipfile.ZipFile(zipf, 'r') as zf: + return zf.read(name+'.js') __builtin__.__dict__['P'] = get_path __builtin__.__dict__['I'] = get_image_path