Re: sys.path not properly initialized (was: PyImport_ImportModule/embedding: surprising behaviors)

2007-10-25 Thread Graham Dumpleton
On Oct 26, 6:53 am, David Abrahams <[EMAIL PROTECTED]> wrote: > > 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, ... > > > > Unfortunately, not

[Windows embedding] sys.path not properly initialized (was: PyImport_ImportModule/embedding: surprising behaviors)

2007-10-25 Thread David Abrahams
on Sat Mar 24 2007, "Ziga Seilnacht" wrote: > 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, ... Unfortunately, nothing you have written below or

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

PyImport_ImportModule/embedding: surprising behaviors

2007-03-20 Thread David Abrahams
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 named xxx I can work around the pr