Browse files

Changing `management.commands.importsassframeworks.PATHS_SCRIPT` so t…

…hat it can be overwritten in settings.py.
  • Loading branch information...
1 parent 69877a1 commit c41f761dc72af3ed0774735caf034cfe006957a4 @armirusco armirusco committed Mar 21, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 mediagenerator/management/commands/importsassframeworks.py
View
5 mediagenerator/management/commands/importsassframeworks.py
@@ -16,7 +16,10 @@
_frameworks_dir)
FRAMEWORKS_DIR = os.path.normcase(os.path.abspath(FRAMEWORKS_DIR))
-PATHS_SCRIPT = os.path.join(os.path.dirname(sass.__file__), 'sass_paths.rb')
+PATHS_SCRIPT = getattr(settings, 'SASS_PATHS_RB_SCRIPT',
+ os.path.join(os.path.dirname(sass.__file__),
+ 'sass_paths.rb'))
+
def copy_children(src, dst):
for item in os.listdir(src):

0 comments on commit c41f761

Please sign in to comment.