diff --git a/surround/config.py b/surround/config.py index cb99e43f..04ebd328 100644 --- a/surround/config.py +++ b/surround/config.py @@ -412,7 +412,7 @@ def some_func(config): def function_wrapper(*args, **kwargs): config = Config.instance() if filename: - path = os.path.join(config["package_path"], filename) + path = os.path.join(config.get_path("package_path"), filename) config.read_config_files([path]) kwargs[name] = config return func(*args, **kwargs)