#!/usr/bin/env python
+import samba_git
import Utils
import os
import sys
try:
__import__(module)
except ImportError:
- if (os.path.isdir(os.path.join(conf.srcdir, ".git")) and
- os.path.isfile(os.path.join(conf.srcdir, ".gitmodule"))):
+ if samba_git.has_submodules(conf.srcdir):
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'.