Fix breakage from last commit.

This commit is contained in:
Anna Rose 2016-01-21 13:01:54 -05:00
parent 545e937dae
commit 97d3a8319a

View File

@ -1,13 +1,15 @@
from ConfigParser import ConfigParser from ConfigParser import ConfigParser
from config import config
import os import os
def get_config_dir():
return os.path.join(path.expanduser('~'), '.ed_tools/')
def get_settings(): def get_settings():
""" """
Try to read the settings from file into ConfigParser object. Try to read the settings from file into ConfigParser object.
If the config file isn't found, initialize it. If the config file isn't found, initialize it.
""" """
filename = os.path.join(config.app_dir, 'settings.conf') filename = os.path.join(get_config_dir(), 'settings.conf')
settings = ConfigParser() settings = ConfigParser()
if os.path.isfile(filename): if os.path.isfile(filename):