mirror of
https://github.com/RosettaCommons/foundry.git
synced 2026-06-04 13:24:22 +08:00
remove reliance of rooutils for pip installed case (#200)
Co-authored-by: Rohith Krishna <rohith@digs>
This commit is contained in:
@@ -12,7 +12,10 @@ from foundry.utils.logging import suppress_warnings
|
||||
|
||||
# Setup root dir and environment variables (more info: https://github.com/ashleve/rootutils)
|
||||
# NOTE: Sets the `PROJECT_ROOT` environment variable to the root directory of the project (where `.project-root` is located)
|
||||
rootutils.setup_root(__file__, indicator=".project-root", pythonpath=True)
|
||||
try:
|
||||
rootutils.setup_root(__file__, indicator=".project-root", pythonpath=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
load_dotenv(override=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user