]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/BinWrappers/PosixLike/Trim
BaseTools/PosixLike: honor pre-set PYTHONPATH
[mirror_edk2.git] / BaseTools / BinWrappers / PosixLike / Trim
index 7cac4f7c4fff29fbb4981a25c4492d38317a1fca..6c8dde5bec3eae83e0762f8f36eeb3ab279e86df 100755 (executable)
@@ -10,5 +10,5 @@ full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a d
 dir=$(dirname "$full_cmd")
 exe=$(basename "$full_cmd")
 
-export PYTHONPATH="$dir/../../Source/Python"
+export PYTHONPATH="$dir/../../Source/Python${PYTHONPATH:+:"$PYTHONPATH"}"
 exec "${python_exe:-python}" "$dir/../../Source/Python/$exe/$exe.py" "$@"