I'm writing library to another .exe program, and want to import .py file from qt resource. I'm usually using 'PyRun_SimpleString' but i have problem because i don't want copy my file to disc, just import it from resource.
I tried change path by sys.path.insert to resource path then use PyRun_SimpleString to call 'import calculator' but this didn't work for me.
PyRun_SimpleString("code = ''import sys\nsys.path.insert(0, ':/Python/'\nimport calculator'");
PyRun_SimpleString("exec(code)");
I tried with qrc path too and every time i have one result from main .exe program ImportError No module named calculator