From 742ae622d2f7196d59133b2e657d48227f3cf78f Mon Sep 17 00:00:00 2001 From: sugoidogo Date: Wed, 16 Jul 2025 20:21:55 -0700 Subject: [PATCH] install dependencies to astrolobot folder --- astrolobot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/astrolobot.py b/astrolobot.py index 9a11a7e..ddc2332 100644 --- a/astrolobot.py +++ b/astrolobot.py @@ -168,10 +168,11 @@ def script_load(settings): global save if not obspython.obs_data_get_bool(settings,'pip_done'): - import pip - pip.main(['install','-qqq','pyswisseph','twitchio','twitchio[starlette]']) + import pip,sys + pip.main(['install','-qqq','pyswisseph','twitchio','twitchio[starlette]','--target',script_path()]) obspython.obs_data_set_bool(settings,'pip_done',True) - + + sys.path.append(script_path()) download_files() obs_settings=settings