Py_SetProgramName() and prefixes

2014-08-28 Thread Marko Havu
Python 2.7 output (setting correct path and changing char strings to wchar_t strings): path: /anaconda/envs/python2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin prefix: /anaconda/envs/python2.7 >>> import sys >>> sys.prefix '/anaconda/envs/python2.7’ Am I doing something wrong, or is t

Re: Py_SetProgramName() and prefixes

2014-08-28 Thread Marko Havu
I wrote earlier: > While doing some testing, I stumbled across some weird behavior on Python 3.3 > and 3.4: Py_GetPrefix(), Py_GetPath() and other functions that return paths > that are supposed to be set by Py_SetProgramName() all return just ”/”: > > main.c >

Re: Py_SetProgramName() and prefixes

2014-08-28 Thread Marko Havu
Marko Havu kirjoitti 28.8.2014 kello 12.58: > I have a problem with Py_Initialize() not being able to find python in the > path. Unless I use Py_SetProgramName() with the full path of the python > interpreter, I get the following error message: > Could not find platform independe