PyImport_ImportModule/embedding: surprising behaviors

Aahz aahz at pythoncraft.com
Sat Mar 24 11:44:49 EDT 2007


In article <mailman.5359.1174435375.32031.python-list at python.org>,
David Abrahams  <dave at boost-consulting.com> wrote:
>
>I was under the impression that both the current directory *and* the
>python library directory were already, automatically, in sys.path, so
>I'm really surprised to see this.  Am I doing something wrong, or is
>this simply the expected behavior (and if so, where is it documented)?

IIRC (without bother to test), there has been some change in the
definition of "current directory" -- it used to be the actual current
directory of os.getcwd(), but since changed to the startup directory.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith



More information about the Python-list mailing list