Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
|
|
@ -8,6 +8,7 @@ and eventually drop this after all usages are changed.
|
|||
|
||||
import os
|
||||
import sys
|
||||
from typing import List
|
||||
|
||||
from pip._vendor import platformdirs as _appdirs
|
||||
|
||||
|
|
@ -39,10 +40,9 @@ def user_config_dir(appname: str, roaming: bool = True) -> str:
|
|||
|
||||
# for the discussion regarding site_config_dir locations
|
||||
# see <https://github.com/pypa/pip/issues/1733>
|
||||
def site_config_dirs(appname: str) -> list[str]:
|
||||
def site_config_dirs(appname: str) -> List[str]:
|
||||
if sys.platform == "darwin":
|
||||
dirval = _appdirs.site_data_dir(appname, appauthor=False, multipath=True)
|
||||
return dirval.split(os.pathsep)
|
||||
return [_appdirs.site_data_dir(appname, appauthor=False, multipath=True)]
|
||||
|
||||
dirval = _appdirs.site_config_dir(appname, appauthor=False, multipath=True)
|
||||
if sys.platform == "win32":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue