Allow config.path to take multiple arguments

This commit is contained in:
Paulus Schoutsen 2015-05-10 23:05:02 -07:00
parent 0a28f3f648
commit c719e7dc31

View file

@ -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. """