diff options
author | Kevin Wood <kevin@proximalabs.com> | 2012-11-14 13:52:22 -0800 |
---|---|---|
committer | Kevin Wood <kevin@proximalabs.com> | 2012-11-14 14:28:34 -0800 |
commit | a7b053f87c5dc874d8983558614a05e9d9dc82d2 (patch) | |
tree | f898f563f63595c4bc6d4ddabec247d269e79e50 /scss/tool.py | |
parent | c614014d6c8a45a99fcf44396e124c52a0bf7baf (diff) | |
download | pyscss-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.py | 4 |
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: |