Mahmudm commited on
Commit
d12a381
·
verified ·
1 Parent(s): f820b24

Update ash_animator/basemaps.py

Browse files
Files changed (1) hide show
  1. 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
- base_dir = os.path.dirname(os.path.abspath(__file__))
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")