@Hossain, Shakir , Welcome to Microsoft Q&A, based on my test, I find that it indeed is the path problem and I can get the correct result from the absolute path. If the absolute path is not working for you, have you considered use relative path?If considered, you can copy the python file into your current project bin->debug folder.
Then you could use the following code to call the python file.
var engine=Python.CreateEngine();
engine.ExecuteFile("test1.py");
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.