make build.py callable from other location

This commit is contained in:
j 2011-04-23 16:54:05 +02:00
parent cda03f71e9
commit d4a57539de

4
tools/build/build.py Normal file → Executable file
View file

@ -1,3 +1,5 @@
#!/usr/bin/env python
#vim: et:ts=4:sw=4:sts=4
import json
import os
import re
@ -27,6 +29,8 @@ def write_path(file):
if path and not os.path.exists(path):
os.makedirs(path)
os.chdir(os.path.dirname(__file__))
source_path = '../../source/'
build_path = '../../build/'