use sys.platform for platform detection
This commit is contained in:
parent
471e9984db
commit
f5399ee5ac
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user