Don't write to stdout, write to a config file, but one with a different name for now
This commit is contained in:
parent
f91d76e9b4
commit
07f7906f86
|
@ -38,10 +38,11 @@ Classes relating to configuration
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
from configobj import ConfigObj
|
from configobj import ConfigObj
|
||||||
from borg import Borg
|
from borg import Borg
|
||||||
from util import dbg
|
from util import dbg, get_config_dir
|
||||||
|
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
'global': {
|
'global': {
|
||||||
|
@ -279,7 +280,7 @@ class ConfigBase(Borg):
|
||||||
section = getattr(self, section_name)
|
section = getattr(self, section_name)
|
||||||
parser[section_name] = section
|
parser[section_name] = section
|
||||||
|
|
||||||
parser.write(sys.stdout)
|
parser.write(open(os.path.join(get_config_dir(), 'epic-config'), 'w'))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import doctest
|
import doctest
|
||||||
|
|
Loading…
Reference in New Issue