Re: PyImport_ImportModule/embedding: surprising behaviors

2007-03-24 Thread Ziga Seilnacht
David Abrahams wrote: > I'm seeing highly surprising (and different!) behaviors of > PyImport_ImportModule on Linux and Windows when used in a program with > python embedding. > > On Linux, when attempting to import a module xxx that's in the current > directory, I get > > ImportError: No module

Re: PyImport_ImportModule/embedding: surprising behaviors

2007-03-24 Thread Alex Martelli
Aahz <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > David Abrahams <[EMAIL PROTECTED]> 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.

Re: PyImport_ImportModule/embedding: surprising behaviors

2007-03-24 Thread Aahz
In article <[EMAIL PROTECTED]>, David Abrahams <[EMAIL PROTECTED]> 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 simpl