Closed dnk8n closed 4 months ago
I agree. There probably is a better way. For now you'll have to set the cache_dir
on the class manually.
Problem reproduces, solution is to set cache dir on Daily
and Stations
classes separately. Agree that an environment variable like METEOSTAT_CACHE_DIR
would be the preferred solution.
Will be considered for version 2.
Despite doing the following:
I still receive errors from elsewhere in the code:
It seems Stations is called indirectly. Do I need to import the class just to set cache_dir?
Is there not an easier way, i.e. setting an environment variable which applies to all?
In this case I am using AWS Lambda and home directory is not writeable.