Merge pull request #490 from tbunnyman/fixDEFAULT_CONFIGoverwrite

Deep copy _DEFAULT_SETTINGS instead of linking.
This commit is contained in:
Alexis Metaireau 2012-08-30 15:08:28 -07:00
commit 88555de28c
4 changed files with 31 additions and 9 deletions

View file

@ -1,3 +1,4 @@
import copy
import os
import re
import sys
@ -29,7 +30,7 @@ class Pelican(object):
before doing anything else.
"""
if settings is None:
settings = _DEFAULT_CONFIG
settings = copy.deepcopy(_DEFAULT_CONFIG)
self.path = path or settings['PATH']
if not self.path: