kbberendsen commited on
Commit
5a53c9e
1 Parent(s): 04160ad

change cache path

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,12 +6,14 @@ from matplotlib.collections import LineCollection
6
  from matplotlib import cm
7
  import numpy as np
8
  import os
 
9
 
10
  try:
11
  script_dir = os.path.dirname(os.path.abspath(__file__))
12
  print(script_dir)
13
  cache_folder = 'cache'
14
- cache_dir = os.path.join(script_dir, cache_folder)
 
15
  print(cache_dir)
16
  ff1.Cache.enable_cache(cache_dir)
17
  except:
 
6
  from matplotlib import cm
7
  import numpy as np
8
  import os
9
+ from pathlib import Path
10
 
11
  try:
12
  script_dir = os.path.dirname(os.path.abspath(__file__))
13
  print(script_dir)
14
  cache_folder = 'cache'
15
+ #cache_dir = os.path.join(script_dir, cache_folder)
16
+ cache_dir =Path(__file__).parent / "cache"
17
  print(cache_dir)
18
  ff1.Cache.enable_cache(cache_dir)
19
  except: