fix: 🐛 install

check string against Path
This commit is contained in:
melMass
2023-08-25 22:07:01 +02:00
parent 22cac9b2d9
commit 616b2bfc6c
+2 -2
View File
@@ -23,9 +23,9 @@ executable = Path(sys.executable)
mode = None
if os.environ.get("COLAB_GPU"):
mode = "colab"
elif "python_embeded" in executable:
elif "python_embeded" in str(executable):
mode = "embeded"
elif ".venv" in executable:
elif ".venv" in str(executable):
mode = "venv"