Merge pull request #553 from balloob/download_relative
Download - relative / absolute path
This commit is contained in:
commit
160fb6fcc8
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ def setup(hass, config):
|
||||||
|
|
||||||
download_path = config[DOMAIN][CONF_DOWNLOAD_DIR]
|
download_path = config[DOMAIN][CONF_DOWNLOAD_DIR]
|
||||||
|
|
||||||
|
# If path is relative, we assume relative to HASS config dir
|
||||||
|
if not os.path.isabs(download_path):
|
||||||
|
download_path = hass.config.path(download_path)
|
||||||
|
|
||||||
if not os.path.isdir(download_path):
|
if not os.path.isdir(download_path):
|
||||||
|
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue