Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Allow for flexible path setting
  • Loading branch information
alex2awesome authored Sep 5, 2023
1 parent 1a4e3ff commit 6f9f099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retriv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

# Set environment variables ----------------------------------------------------
os.environ["TOKENIZERS_PARALLELISM"] = "false"
os.environ["RETRIV_BASE_PATH"] = str(Path.home() / ".retriv")

if "RETRIV_BASE_PATH" not in os.environ: # allow user to set a different path in .bash_profile
os.environ["RETRIV_BASE_PATH"] = str(Path.home() / ".retriv")

def set_base_path(path: str):
os.environ["RETRIV_BASE_PATH"] = path

0 comments on commit 6f9f099

Please sign in to comment.