From d8f089d0b7393b7d3a93f328d2cbc3c9e02de2b9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Apr 2011 13:19:01 +0200 Subject: [PATCH] build.py base_path --- tools/build/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build/build.py b/tools/build/build.py index 6121d1b0..606afdae 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -44,7 +44,9 @@ def write_path(file): os.makedirs(path) # doesn't work here -# os.chdir(os.path.dirname(__file__)) +base_path = os.path.dirname(__file__) +if base_path: + os.chdir(base_path) source_path = '../../source/' build_path = '../../build/'