

def get_cache_directory(self):
    ' Returns a directory to be used for caching.\n        '
    directory = os.environ.get('EEMETER_WEATHER_CACHE_DIRECTORY', os.path.expanduser('~/.eemeter/cache'))
    if (not os.path.exists(directory)):
        os.makedirs(directory)
    return directory

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py CachedWeatherSourceBase.get_cache_directory/original