fix(base.py): change appdirs dependency to platformdirs
This commit is contained in:
parent
1023522e5e
commit
307c526d6a
1 changed files with 2 additions and 2 deletions
|
|
@ -55,14 +55,14 @@ class Settings(BaseSettings):
|
|||
@validator("CONFIG_DIR", pre=True, allow_reuse=True)
|
||||
def set_langflow_dir(cls, value):
|
||||
if not value:
|
||||
import appdirs
|
||||
import platformdirs
|
||||
|
||||
# Define the app name and author
|
||||
app_name = "langflow"
|
||||
app_author = "logspace"
|
||||
|
||||
# Get the cache directory for the application
|
||||
cache_dir = appdirs.user_cache_dir(app_name, app_author)
|
||||
cache_dir = platformdirs.user_cache_dir(app_name, app_author)
|
||||
|
||||
# Create a .langflow directory inside the cache directory
|
||||
value = Path(cache_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue