equal
deleted
inserted
replaced
1 import os |
1 import os |
2 import os.path |
2 import os.path |
|
3 import re |
3 import sys |
4 import sys |
4 import subprocess |
5 import subprocess |
5 import shlex |
6 import shlex |
6 |
7 |
7 # WAF modules |
8 # WAF modules |
8 import Options |
9 from waflib import Options, Utils, Logs, TaskGen, Build, Context |
9 import Utils |
|
10 import Logs |
|
11 import TaskGen |
|
12 import Build |
|
13 import re |
|
14 from waflib.Errors import WafError |
10 from waflib.Errors import WafError |
15 |
11 |
16 # these are set from the main wscript file |
12 # these are set from the main wscript file |
17 APPNAME=None |
13 APPNAME=None |
18 VERSION=None |
14 VERSION=None |
45 rel_list = [os.path.pardir] * (len(start_list)-i) + path_list[i:] |
41 rel_list = [os.path.pardir] * (len(start_list)-i) + path_list[i:] |
46 if not rel_list: |
42 if not rel_list: |
47 return os.path.curdir |
43 return os.path.curdir |
48 return os.path.join(*rel_list) |
44 return os.path.join(*rel_list) |
49 |
45 |
50 from waflib import Context |
46 |
51 def find_program(program_name, env): |
47 def find_program(program_name, env): |
52 launch_dir = os.path.abspath(Context.launch_dir) |
48 launch_dir = os.path.abspath(Context.launch_dir) |
53 #top_dir = os.path.abspath(Options.cwd_launch) |
49 #top_dir = os.path.abspath(Options.cwd_launch) |
54 found_programs = [] |
50 found_programs = [] |
55 for obj in bld.all_task_gen: |
51 for obj in bld.all_task_gen: |