#!/usr/bin/env python

import os
import subprocess
import sys

# TODO: release/debug

root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if sys.platform != "win32":
    cmd = ['make', '-C', root]
else:
    cmd = ['win_build.bat']

print ' '.join(cmd)
subprocess.call(cmd, shell=True)


#!/usr/bin/env python

import os
import subprocess
import sys

# TODO: release/debug

root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if sys.platform != "win32":
    cmd = ['make', '-C', root]
else:
    cmd = ['tools\win_build.bat']

print ' '.join(cmd)
subprocess.call(cmd, shell=True)


add tools path