3 from __future__
import print_function
8 d
= p
.dirname(p
.realpath(__file__
))
9 waf_light
= p
.join(d
, 'modules', 'waf', 'waf-light')
11 python
= sys
.executable
14 subprocess
.check_call([python
, waf_light
] + sys
.argv
[1:])
15 except subprocess
.CalledProcessError
as e
:
16 if e
.returncode
!= 2 or p
.isfile(waf_light
):
19 print('Missing waf submodule. Trying to get it')
22 subprocess
.check_call(['git', 'submodule', 'update', '--init',
24 except subprocess
.CalledProcessError
:
25 print('Could not update submodule', file=sys
.stderr
)
28 print('Submodules OK, try running again')