diff options
author | Gary Lin <glin@suse.com> | 2018-07-13 18:18:38 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-07-16 11:22:15 +0800 |
commit | 9f3594782de9051cbf599f9af006903ed3f6669e (patch) | |
tree | 20f2b08b009fa4cb2745176f5c1dd2ee26745bce /BaseTools/BinWrappers/PosixLike | |
parent | 0ff3b52e065cc702a64d5a9016ee7926025dfbc7 (diff) | |
download | edk2-9f3594782de9051cbf599f9af006903ed3f6669e.tar.gz |
BaseTools: Treat BPDG.py as a python module
Since BPDG.py import modules from its own directory, add "-m" to the
python parameters so that they can import its own modules after adopting
absolute import.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/BinWrappers/PosixLike')
-rwxr-xr-x | BaseTools/BinWrappers/PosixLike/BPDG | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/BinWrappers/PosixLike/BPDG b/BaseTools/BinWrappers/PosixLike/BPDG index 01ae23ddeb..bca1bae96a 100755 --- a/BaseTools/BinWrappers/PosixLike/BPDG +++ b/BaseTools/BinWrappers/PosixLike/BPDG @@ -11,4 +11,4 @@ dir=$(dirname "$full_cmd") cmd=${full_cmd##*/} export PYTHONPATH="$dir/../../Source/Python${PYTHONPATH:+:"$PYTHONPATH"}" -exec "${python_exe:-python}" "$dir/../../Source/Python/$cmd/$cmd.py" "$@" +exec "${python_exe:-python}" -m $cmd.$cmd "$@"
|