Python leaks variables from list comprehensions (Why, Python, why?) which breaks any later attempts to use the path module

This commit is contained in:
Calen Pennington
2012-06-06 09:18:04 -04:00
parent bf032e6386
commit eec80426f2

View File

@@ -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'
}
}