diff options
author | funvit <funvit@gmail.com> | 2013-10-01 13:17:38 +0400 |
---|---|---|
committer | funvit <funvit@gmail.com> | 2013-10-01 13:17:38 +0400 |
commit | 993182441d5aaefcca66775af7b123bb11d83f1e (patch) | |
tree | 99cd2d71caf3a28e65674a7582a209f77511b809 /scss/tool.py | |
parent | 8ddc497f8120f9dc7570f08643ef9523fca25ff9 (diff) | |
download | pyscss-993182441d5aaefcca66775af7b123bb11d83f1e.tar.gz |
issue_114
Diffstat (limited to 'scss/tool.py')
-rw-r--r-- | scss/tool.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scss/tool.py b/scss/tool.py index 84d211b..41f8f47 100644 --- a/scss/tool.py +++ b/scss/tool.py @@ -76,7 +76,11 @@ def main(): paths_group.add_option("-F", "--fonts-root", metavar="PATH", dest="fonts_root", help="Fonts root path (Where fonts are located)") paths_group.add_option("-f", "--fonts-url", metavar="PATH", dest="fonts_url", - help="URL to reach the fonts in your fonts_root") + help="URL to reach the fonts in your fonts_root") + paths_group.add_option("--images-root", metavar="PATH", dest="images_root", + help="Images root path (Where images are located)") + paths_group.add_option("--images-url", metavar="PATH", dest="images_url", + help="URL to reach the images in your images_root") paths_group.add_option("--cache-root", metavar="PATH", dest="cache_root", help="Cache root path (Cache files will be created here)") parser.add_option_group(paths_group) @@ -91,14 +95,22 @@ def main(): config.VERBOSITY = 0 if options.time: config.VERBOSITY = 2 + if options.static_root is not None: config.STATIC_ROOT = options.static_root if options.assets_root is not None: config.ASSETS_ROOT = options.assets_root + if options.fonts_root is not None: config.FONTS_ROOT = options.fonts_root if options.fonts_url is not None: config.FONTS_URL = options.fonts_url + + if options.images_root is not None: + config.IMAGES_ROOT = options.images_root + if options.images_url is not None: + config.IMAGES_URL = options.images_url + if options.cache_root is not None: config.CACHE_ROOT = options.cache_root if options.load_paths is not None: |