From b186facb7a195fc6319e717a02a61e7c918e449c Mon Sep 17 00:00:00 2001 From: nkprasad12 <31296089+nkprasad12@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:14:06 -0500 Subject: [PATCH] Update pmapi.py to use a value comparison in Windows check `is` will return `False` even if the values match if it's not the same object in memory. --- Monsoon/pmapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monsoon/pmapi.py b/Monsoon/pmapi.py index 59707b9..441baa4 100644 --- a/Monsoon/pmapi.py +++ b/Monsoon/pmapi.py @@ -227,7 +227,7 @@ def loadLibrary(self): path = os.path.dirname(path) if(platform.system() == "Linux"): libLocation=os.path.join(path,"Compiled/Linux/libcpp_backend.so") - elif(platform.system() is "Windows"): + elif(platform.system() == "Windows"): libLocation = os.path.join(path,"Compiled//WIN32//Cpp_backend.dll") else: raise NotImplementedError("OS not currently supported.")