tags:

views:

32

answers:

2

How do I find out what platform SCons is building for (Linux, Mac OS X, Windows, &c-- not concerned with architecture).

A: 

Will http://docs.python.org/library/platform.html#platform.platform (true,true) do what you want? If not you may have to map it yourself from data in the other platform methods.

Lance Purple
+1  A: 

You can also use env['PLATFORM'] once you've created an Environment. I think it comes from sys.platform.

garyo