From f5399ee5ac15d3722a913b7d1b5550eb6f3b99f4 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 6 Sep 2012 21:49:14 -0400 Subject: [PATCH] use sys.platform for platform detection --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 4a1b787..4cacdc7 100755 --- a/SConstruct +++ b/SConstruct @@ -1,6 +1,7 @@ # vim:filetype=python import os +import sys import re from subprocess import Popen, PIPE @@ -28,7 +29,7 @@ def find_sources_under(path): return sources # determine our build platform -platform = 'windows' if os.path.exists('/bin/cygwin1.dll') else 'unix' +platform = 'windows' if sys.platform == 'cygwin' else 'unix' # common environment settings SFML_VERSION = '2.0-rc'