better dependency check
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user