summaryrefslogtreecommitdiff
path: root/scss/tool.py
diff options
context:
space:
mode:
authorKevin Wood <kevin@proximalabs.com>2012-11-14 13:52:22 -0800
committerKevin Wood <kevin@proximalabs.com>2012-11-14 14:28:34 -0800
commita7b053f87c5dc874d8983558614a05e9d9dc82d2 (patch)
treef898f563f63595c4bc6d4ddabec247d269e79e50 /scss/tool.py
parentc614014d6c8a45a99fcf44396e124c52a0bf7baf (diff)
downloadpyscss-a7b053f87c5dc874d8983558614a05e9d9dc82d2.tar.gz
Add configuration parameter for ASSETS_URL
Also include ASSETS_URL in hash so that the sprites are regenerated if ASSETS_URL changes.
Diffstat (limited to 'scss/tool.py')
-rw-r--r--scss/tool.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scss/tool.py b/scss/tool.py
index da641db..94f81ee 100644
--- a/scss/tool.py
+++ b/scss/tool.py
@@ -58,6 +58,8 @@ def main():
help="Static root path (Where images and static resources are located)")
paths_group.add_option("-A", "--assets-root", metavar="PATH", dest="assets_root",
help="Assets root path (Sprite images will be created here)")
+ paths_group.add_option("-a", "--assets-url", metavar="URL", dest="assets_url",
+ help="URL to reach the files in your assets_root")
parser.add_option_group(paths_group)
(options, args) = parser.parse_args()
@@ -89,6 +91,8 @@ def main():
scss.LOAD_PATHS = ','.join(load_path_list)
else:
scss.LOAD_PATHS = load_path_list
+ if options.assets_url is not None:
+ scss.ASSETS_URL = options.assets_url
# Execution modes
if options.test: