From eec80426f26cd2e7e189bfc58886b59e74ab94d7 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 6 Jun 2012 09:18:04 -0400 Subject: [PATCH] Python leaks variables from list comprehensions (Why, Python, why?) which breaks any later attempts to use the path module --- envs/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envs/common.py b/envs/common.py index 31b8e9936f..f3bc1296b5 100644 --- a/envs/common.py +++ b/envs/common.py @@ -287,11 +287,11 @@ PIPELINE_CSS = { PIPELINE_JS = { 'application': { - 'source_filenames': [path.replace('static/', '') for path in glob2.glob('static/coffee/src/**/*.coffee')], + 'source_filenames': [pth.replace('static/', '') for pth in glob2.glob('static/coffee/src/**/*.coffee')], 'output_filename': 'js/application.js' }, 'spec': { - 'source_filenames': [path.replace('static/', '') for path in glob2.glob('static/coffee/spec/**/*.coffee')], + 'source_filenames': [pth.replace('static/', '') for pth in glob2.glob('static/coffee/spec/**/*.coffee')], 'output_filename': 'js/spec.js' } }