From 988126dcc52c213b8f9cd2fc9d41c778ccda1a33 Mon Sep 17 00:00:00 2001 From: Rohith Krishna Date: Wed, 4 Feb 2026 18:55:51 -0800 Subject: [PATCH] remove reliance of rooutils for pip installed case --- models/rf3/src/rf3/inference.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/rf3/src/rf3/inference.py b/models/rf3/src/rf3/inference.py index 14ee7e3c..3570abd8 100755 --- a/models/rf3/src/rf3/inference.py +++ b/models/rf3/src/rf3/inference.py @@ -12,7 +12,10 @@ # 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)