Spaces:
Sleeping
Sleeping
Update ash_animator/basemaps.py
Browse files- ash_animator/basemaps.py +1 -3
ash_animator/basemaps.py
CHANGED
|
@@ -5,10 +5,8 @@ import contextily as ctx
|
|
| 5 |
from mpl_toolkits.basemap import Basemap
|
| 6 |
|
| 7 |
|
| 8 |
-
# Determine cache directory based on location of app.py
|
| 9 |
def get_cache_dir(app_name):
|
| 10 |
-
|
| 11 |
-
return os.path.join(base_dir, f"{app_name}_cache")
|
| 12 |
|
| 13 |
# Define and create cache directories
|
| 14 |
CTX_TILE_CACHE_DIR = get_cache_dir("contextily")
|
|
|
|
| 5 |
from mpl_toolkits.basemap import Basemap
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
def get_cache_dir(app_name):
|
| 9 |
+
return os.path.join(os.getcwd(), f"{app_name}_cache")
|
|
|
|
| 10 |
|
| 11 |
# Define and create cache directories
|
| 12 |
CTX_TILE_CACHE_DIR = get_cache_dir("contextily")
|