Skip to content

Commit cb7e518

Browse files
authored
Fix Python version check in LocalVisage.py
1 parent a2813fb commit cb7e518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/LocalVisage/LocalVisage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
99
# --- PYTHON VERSION CHECK ---
1010

11-
if not os.path.isdir(venv_dir) and not (sys.version_info.major == 3 and sys.version_info.minor == 10):
11+
if not os.path.isdir(venv_dir) and not (sys.version_info.major == 3 and sys.version_info.minor >= 10):
1212
ensure_import("stashapi:stashapp-tools>=0.2.58")
1313
import stashapi.log as log
1414
log.error("Error: Python version must be >= 3.10.X (recommanded 3.10.11) for the first installation of the plugin. Once installed you can change back your python version in stash as this plugin will run within its own venv")
@@ -368,4 +368,4 @@ def spawn_server(server_connection=None):
368368
log.info("Server spawned successfully, you can now use the plugin.")
369369

370370
if __name__ == '__main__':
371-
main()
371+
main()

0 commit comments

Comments
 (0)