better dependency check

This commit is contained in:
2025-07-18 01:35:27 -07:00
parent bb05fc0b44
commit 0e67657698
+3 -2
View File
@@ -227,10 +227,11 @@ def script_load(settings):
global obs_settings
global save
if not obspython.obs_data_get_bool(settings,'pip_done'):
try:
import twitchio, swisseph
except:
import pip
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()