Skip to content

Commit

Permalink
[#2618] Get minified files in sub dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 7, 2012
1 parent bd96d4d commit acfe3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/html_resources/__init__.py
Expand Up @@ -260,6 +260,7 @@ def create_resource(path, lib_name, count):
# resource_name is name of the file without the .js/.css
rel_path, filename = os.path.split(path)
kw = {}
filename = os.path.join(rel_path, filename)
path_min = min_path(os.path.join(resource_path, filename))
if os.path.exists(path_min):
kw['minified'] = min_path(filename)
Expand All @@ -284,7 +285,6 @@ def create_resource(path, lib_name, count):
condition=condition,
renderer=renderer,
other_browsers=other_browsers)
filename = os.path.join(rel_path, filename)
resource = Resource(library, filename, **kw)
# add the resource to this module
fanstatic_name = '%s/%s' % (lib_name, filename)
Expand Down

0 comments on commit acfe3b2

Please sign in to comment.