From: daid Date: Wed, 22 Feb 2012 15:06:53 +0000 (+0100) Subject: Added same patch for checkSSE2 to newUI version X-Git-Tag: RC1~164^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e09b08c85e5cc85263ca2e8730b65fc2fa4e72ea;p=cura.git Added same patch for checkSSE2 to newUI version --- diff --git a/SkeinPyPy_NewUI/newui/skeinRun.py b/SkeinPyPy_NewUI/newui/skeinRun.py index 08be13cd..8c862372 100644 --- a/SkeinPyPy_NewUI/newui/skeinRun.py +++ b/SkeinPyPy_NewUI/newui/skeinRun.py @@ -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: