File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,25 +36,6 @@ class InvalidApplicationDirname(Exception):
3636 pass
3737
3838
39- def get_appdata_dir () -> Path :
40- """Returns the path of the application data directory.
41-
42- On Windows, the application data is stored in `/Users/user/AppData/Roaming`.
43- On macOS the application data is stored in `~/Libary/Application Support`.
44- """
45- if sys .platform == "win32" :
46- # Windows: located in /Users/user/AppData/Roaming/
47- app_data = Path (os .environ ["AppData" ])
48- elif sys .platform == "darwin" :
49- # MacOS: located in ~/Library/Application Support/
50- app_data = Path ("~" ).expanduser () / "Library" / "Application Support"
51- else :
52- # Linux: not supported
53- logger .warning (f"OS { sys .platform } not supported!" )
54- return Path ("~" ).expanduser () / ".local" / "share"
55- return app_data
56-
57-
5839def get_pioneer_install_dir (path : Union [str , Path ] = None ) -> Path : # pragma: no cover
5940 """Returns the path of the Pioneer program installation directory.
6041
You can’t perform that action at this time.
0 commit comments