File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010import pandas as pd
1111import pickle
12+ import platformdirs
1213from psm_utils .io import read_file , write_file
1314from psm_utils import PSMList , PSM , Peptidoform
1415from psm_utils .utils import mz_to_mass
@@ -781,9 +782,7 @@ def _get_cache_file_path(self):
781782 return:
782783 str: path to cache file
783784 """
784- current_dir = os .path .dirname (os .path .realpath (__file__ ))
785- parent_dir = os .path .dirname (current_dir )
786- cache_dir = os .path .join (parent_dir , "modification_cache" )
785+ cache_dir = platformdirs .user_cache_dir (appname = "mumble" )
787786
788787 # Create the cache directory if it doesn't exist
789788 os .makedirs (cache_dir , exist_ok = True )
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ dependencies = [
2828 " psm_utils >= 0.9.0" ,
2929 " numpy >= 1.23.0" ,
3030 " rustyms >= 0.8.0"
31+ "platformdirs >= 3.0.0",
3132]
3233requires-python = " >=3.10"
3334
You can’t perform that action at this time.
0 commit comments