From 5826e18189ebd2e249715bad155c380a1e1e2502 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 17 Jul 2025 08:48:07 -0400 Subject: [PATCH] Add vendor directory to sys.path --- src/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 565ade0..9119d5a 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,13 @@ # main.py -import os from pathlib import Path import sys + +# Add bundled vendor directory to sys.path so bundled dependencies can be imported +vendor_dir = Path(__file__).parent / "vendor" +if vendor_dir.exists(): + sys.path.insert(0, str(vendor_dir)) + +import os import logging import signal import getpass