GH-89858: Fix test_embed for out-of-tree builds (GH-93465)

(cherry picked from commit 96464e5401783c99f1ae24369bb2a854b8c5f46a)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 files changed