1
0
Fork 0
forked from github/pelican

Use --relative-urls only if it is specified

Otherwise, `RELATIVE_URLS` in the config file is ignored and
`RELATIVE_URLS` is set to `False` if `--relative-urls` is not
specified.

Fixes an issue introduced in #1592
This commit is contained in:
Deniz Turgut 2015-03-14 13:36:51 -04:00
commit ef737c2239

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