# Extract build system option from command line from sys import argv import sys
try: reload(sys) sys.setdefaultencoding('utf8') index = argv.index('--build_system', 1) build_system = argv[index+1] except (ValueError, IndexError): # Extract build system option from environment from os import environ build_system = environ.get('__BUILD_SYSTEM__', 'make')
if build_system == 'scons': from maker.build_scons import * else: from builder.build import *