From 869e638e07b37e57cd9dd65e455352de7a352297 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Mon, 6 Aug 2012 05:28:19 -0400 Subject: [PATCH] Removing compiled js files in data directories before recompiling them; this causes compilation errors to fail loudly. --- lms/envs/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index 83a4bd4181..8b41470f92 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -457,6 +457,7 @@ if os.path.isdir(DATA_DIR): js_timestamp = os.stat(js_dir / new_filename).st_mtime if coffee_timestamp <= js_timestamp: continue + os.system("rm %s" % (js_dir / new_filename)) os.system("coffee -c %s" % (js_dir / filename)) PIPELINE_COMPILERS = [