feat(studio): add auth-specific paths and integrate auth database location
This commit is contained in:
parent
c2871fcff8
commit
f2b2b33769
3 changed files with 16 additions and 3 deletions
|
|
@ -13,6 +13,8 @@ from .storage_roots import (
|
|||
recipe_datasets_root,
|
||||
outputs_root,
|
||||
exports_root,
|
||||
auth_root,
|
||||
auth_db_path,
|
||||
tmp_root,
|
||||
seed_uploads_root,
|
||||
unstructured_seed_cache_root,
|
||||
|
|
@ -38,6 +40,8 @@ __all__ = [
|
|||
'recipe_datasets_root',
|
||||
'outputs_root',
|
||||
'exports_root',
|
||||
'auth_root',
|
||||
'auth_db_path',
|
||||
'tmp_root',
|
||||
'seed_uploads_root',
|
||||
'unstructured_seed_cache_root',
|
||||
|
|
|
|||
|
|
@ -32,6 +32,14 @@ def exports_root() -> Path:
|
|||
return studio_root() / "exports"
|
||||
|
||||
|
||||
def auth_root() -> Path:
|
||||
return studio_root() / "auth"
|
||||
|
||||
|
||||
def auth_db_path() -> Path:
|
||||
return auth_root() / "auth.db"
|
||||
|
||||
|
||||
def tmp_root() -> Path:
|
||||
return Path(tempfile.gettempdir()) / "unsloth-studio"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue