Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
#!/usr/bin/env python
-import samba_git
-import Options
-import Utils
import os
import sys
+import samba_git
+from waflib import Options, Utils
# work out what python external libraries we need to install
external_pkgs = {
old_path = sys.path
try:
- sys.path.append(os.path.join(conf.curdir, os.path.dirname(package)))
+ sys.path.append(os.path.join(conf.path.abspath(), os.path.dirname(package)))
try:
__import__(module)
except ImportError:
- if samba_git.has_submodules(conf.srcdir):
+ if samba_git.has_submodules(conf.srcnode.abspath()):
raise Utils.WafError("""\
Unable to find Python module '%s'. Please install the system package or check \
out the relevant submodule by running 'git submodule update --init'.