mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
creating db file based on package name
This commit is contained in:
@@ -4,9 +4,13 @@ import appdirs
|
|||||||
|
|
||||||
|
|
||||||
def db_storage_path():
|
def db_storage_path():
|
||||||
app_name = "crewai"
|
app_name = get_current_package_name()
|
||||||
app_author = "CrewAI"
|
app_author = "CrewAI"
|
||||||
|
|
||||||
data_dir = Path(appdirs.user_data_dir(app_name, app_author))
|
data_dir = Path(appdirs.user_data_dir(app_name, app_author))
|
||||||
data_dir.mkdir(parents=True, exist_ok=True)
|
data_dir.mkdir(parents=True, exist_ok=True)
|
||||||
return data_dir
|
return data_dir
|
||||||
|
|
||||||
|
|
||||||
|
def get_current_package_name():
|
||||||
|
return __package__
|
||||||
|
|||||||
Reference in New Issue
Block a user