diff --git a/rattail/config.py b/rattail/config.py index 90e5c322..283f97e1 100644 --- a/rattail/config.py +++ b/rattail/config.py @@ -28,11 +28,8 @@ import importlib import os import re import sys -import datetime -import configparser import warnings import logging -import logging.config from wuttjamaican.conf import (WuttaConfig, WuttaConfigExtension, make_config as wutta_make_config, @@ -40,9 +37,7 @@ from wuttjamaican.conf import (WuttaConfig, WuttaConfigExtension, from wuttjamaican.util import (parse_bool as wutta_parse_bool, parse_list as wutta_parse_list) -from rattail.util import load_entry_points, load_object from rattail.exceptions import WindowsExtensionsNotInstalled, ConfigurationError -from rattail.files import temp_path log = logging.getLogger(__name__) @@ -799,10 +794,10 @@ class ConfigProfile(object): if function: action.spec = function - action.action = load_object(action.spec) + action.action = self.app.load_object(action.spec) elif class_: action.spec = class_ - action.action = load_object(action.spec)(self.config) + action.action = self.app.load_object(action.spec)(self.config) elif cmd: action.spec = cmd action.action = CommandAction(self.config, cmd)