From c719e7dc310b618df11b56c19ad7a5bb757fb171 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 10 May 2015 23:05:02 -0700 Subject: [PATCH] Allow config.path to take multiple arguments --- homeassistant/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/__init__.py b/homeassistant/__init__.py index a132f96a8a6..132482d4bfa 100644 --- a/homeassistant/__init__.py +++ b/homeassistant/__init__.py @@ -937,9 +937,9 @@ class Config(object): # Directory that holds the configuration self.config_dir = os.path.join(os.getcwd(), 'config') - def path(self, path): + def path(self, *path): """ Returns path to the file within the config dir. """ - return os.path.join(self.config_dir, path) + return os.path.join(self.config_dir, *path) def temperature(self, value, unit): """ Converts temperature to user preferred unit if set. """