mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
Fixing db path
This commit is contained in:
@@ -4,7 +4,7 @@ import appdirs
|
||||
|
||||
|
||||
def db_storage_path():
|
||||
app_name = get_current_package_name()
|
||||
app_name = get_project_directory_name()
|
||||
app_author = "CrewAI"
|
||||
|
||||
data_dir = Path(appdirs.user_data_dir(app_name, app_author))
|
||||
@@ -12,5 +12,7 @@ def db_storage_path():
|
||||
return data_dir
|
||||
|
||||
|
||||
def get_current_package_name():
|
||||
return __package__
|
||||
def get_project_directory_name():
|
||||
cwd = Path.cwd()
|
||||
project_directory_name = cwd.name
|
||||
return project_directory_name
|
||||
|
||||
Reference in New Issue
Block a user