ImportError in embedded Python Interpreter

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 31 00:56:21 EST 2009


En Fri, 30 Jan 2009 08:50:45 -0200, <googler.1.webmaster at spamgourmet.com>  
escribió:

> Okay, thats just the question. I did that what you wrote but it
> doesn't really works.
> What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is
> empty?

Why so? Are you in an embedded environment or something that doesn't have  
a filesystem? Calling Py_SetProgramName with an absolute path would be the  
easiest way to make it work.

-- 
Gabriel Genellina




More information about the Python-list mailing list