use sys.platform for platform detection

This commit is contained in:
Josh Holtrop 2012-09-06 21:49:14 -04:00
parent 471e9984db
commit f5399ee5ac

View File

@ -1,6 +1,7 @@
# vim:filetype=python # vim:filetype=python
import os import os
import sys
import re import re
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
@ -28,7 +29,7 @@ def find_sources_under(path):
return sources return sources
# determine our build platform # 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 # common environment settings
SFML_VERSION = '2.0-rc' SFML_VERSION = '2.0-rc'