I use PyImport_ImportModule to import python module in C++.
Now i have two Python module files with same name in different folder like:
c:\Demo1\plugin.py and c:\Demo2\plugin.py
I know in python, can use
import Demo1.plugin as p1
import Demo2.plugin as p2
How to do it in C++, with PyImport_ImportModule or otherwise?
I find a workaround: execute python c:\Demo1\plugin.py and get the output from it, but it isn't a good solution.
#include?