Python is calling a C++ function (wrapped using swig).
C++:
std::wstring getFilePathMultiByte();
I can call this function in python. Question is how do I use this returned wstring? want to append filename to this path which gives error as shown in output below.
Python:
path = getFilePathMultiByte()
print path, type(path)
file = path + "/Information.log"
Output:
_2012ad3900000000_p_std__wstring, type 'SwigPyObject'
TypeError: unsupported operand type(s) for +: 'SwigPyObject' and 'str'
How do I create a std::wstring in python? That may allow concatenation for me.
Thanks.
pprint.pprint(path)will show you the attributes.