deps: allow for relative package imports in dependency checks
deps.py would previously run chdir into the Python file which
it is checking before trying to import it. This caused failures
on modules with relative imports, since they must be imported
under a package namespace.
Modify deps.py to instead chdir into the file's parent directory,
so that it will be able to import properly in this case.
Commit-Ready: Joel Kitching <email@example.com>
Tested-by: Joel Kitching <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
1 file changed