From 0690f7fc55f6d52a0d04ff3312bc3f3704ddc8dd Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Fri, 23 Aug 2019 16:59:24 +0100 Subject: When I'm alone I count myslef. --- synapse_topology/model/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/synapse_topology/model/__init__.py b/synapse_topology/model/__init__.py index eb91917935..327242feec 100644 --- a/synapse_topology/model/__init__.py +++ b/synapse_topology/model/__init__.py @@ -5,13 +5,7 @@ from os.path import abspath, join, exists, isdir from synapse.config.homeserver import HomeServerConfig -from .constants import ( - BASE_CONFIG, - CONFIG_LOCK, - CONFIG_LOCK_DATA, - DATA_SUBDIR, - SERVER_NAME, -) +from .constants import CONFIG_LOCK, CONFIG_LOCK_DATA, DATA_SUBDIR, SERVER_NAME from .errors import BaseConfigInUseError, ConfigNotFoundError, ServernameNotSetError from .config import create_config from .util import is_subpath @@ -44,7 +38,7 @@ class Model: """ conf_path = abspath(join(self.config_dir, config_path)) - if not is_subpath(config_dir, conf_path): + if not is_subpath(self.config_dir, conf_path): raise FileNotFoundError() with open(conf_path, "r") as f: -- cgit 1.4.1