chiark / gitweb /
Added same patch for checkSSE2 to newUI version
authordaid <daid303@gmail.com>
Wed, 22 Feb 2012 15:06:53 +0000 (16:06 +0100)
committerdaid <daid303@gmail.com>
Wed, 22 Feb 2012 15:06:53 +0000 (16:06 +0100)
SkeinPyPy_NewUI/newui/skeinRun.py

index 08be13cdf68df558b73f59db546d32ddcb4d43eb..8c862372dfa69a948a28cf91c8205e10b17d01af 100644 (file)
@@ -6,6 +6,14 @@ from skeinforge_application.skeinforge_utilities import skeinforge_craft
 
 def getPyPyExe():
        "Return the path to the pypy executable if we can find it. Else return False"
+       if platform.system() == "Windows":
+               checkSSE2exe = os.path.dirname(os.path.abspath(__file__)) + "/checkSSE2.exe"
+               if os.path.exists(checkSSE2exe):
+                       if subprocess.call(checkSSE2exe) != 0:
+                               print "*****************************************************"
+                               print "* Your CPU is lacking SSE2 support, cannot use PyPy *"
+                               print "*****************************************************"
+                               return False
        if platform.system() == "Windows":
                pypyExe = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../pypy/pypy.exe"));
        else: