Piyush Patel added the comment:
Hi
Thanks for your time.
Just wanted to add that earlier I used
PyImport_AddModule(""__main__").
but now I used PyImport_ImportModule(""__main__")
resolved the issue for me regardless of installation path it worked.
Thanks
Piyush
--
resolution:
Eric V. Smith added the comment:
You're going to get more help by posting your question elsewhere. This isn't a
forum where we can help you debug your code: it's for reporting bugs in Python.
You might try https://discuss.python.org/c/users/, or maybe the python-list
mailing list.
Good luck
Piyush Patel added the comment:
So upon further investigation, it seems all the built-in functions are not
working.
def func():
max(10,20)
this code errors out saying "name 'max' is not defined"
so when python installation is in custom location or parent folder name is
"python", the e
New submission from Piyush Patel :
Hi,
I am facing a very strange issue.
I am working on a C++ application which embeds a python.
As per documentation i have the dependencies added from python (/libs and
/include directories) to C++ application.
I am using Py_RunString() to run simple python co