From 616b2bfc6c629cef1d30cb0d717bd805c3a086aa Mon Sep 17 00:00:00 2001 From: melMass Date: Fri, 25 Aug 2023 22:07:01 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit check string against Path --- install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index ee00b9c..dc34324 100644 --- a/install.py +++ b/install.py @@ -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"