1
0
Fork 0
forked from github/pelican

Merge pull request #1663 from avaris/fix_relative_urls

Use `--relative-urls` only if it is specified
This commit is contained in:
Justin Mayer 2015-03-15 09:44:55 -07:00
commit df70fa8596

View file

@ -321,7 +321,8 @@ def get_config(args):
config['CACHE_PATH'] = args.cache_path
if args.selected_paths:
config['WRITE_SELECTED'] = args.selected_paths.split(',')
config['RELATIVE_URLS'] = args.relative_paths
if args.relative_paths:
config['RELATIVE_URLS'] = args.relative_paths
config['DEBUG'] = args.verbosity == logging.DEBUG
# argparse returns bytes in Py2. There is no definite answer as to which