diff --git a/src/silx/utils/ExternalResources.py b/src/silx/utils/ExternalResources.py index 8172b6698c..4f7c897e55 100644 --- a/src/silx/utils/ExternalResources.py +++ b/src/silx/utils/ExternalResources.py @@ -52,7 +52,7 @@ class ExternalResources(object): """ - def __init__(self, project, url_base, env_key=None, timeout=60): + def __init__(self, project, url_base, env_key=None, timeout=60, data_home=None): """Constructor of the class :param str project: name of the project, like "silx" @@ -65,6 +65,7 @@ def __init__(self, project, url_base, env_key=None, timeout=60): The environment variable is optional: in case it is not set, a directory in the temporary folder is used. :param timeout: time in seconds before it breaks + :param data_home: Directory in which the data will be downloaded """ self.project = project self._initialized = False @@ -74,7 +75,7 @@ def __init__(self, project, url_base, env_key=None, timeout=60): self.url_base = url_base self.all_data = {} self.timeout = timeout - self._data_home = None + self._data_home = data_home @property def data_home(self):