From 454256d690c694c5eaf833fbe3b06819383b19c9 Mon Sep 17 00:00:00 2001 From: Zac Brannelly <101668878@student.swin.edu.au> Date: Tue, 19 Nov 2019 15:26:06 +1100 Subject: [PATCH] FIX: Avoid pylint error --- surround/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)