Re: execute python script question

2008-03-11 Thread Piet van Oostrum
> Gabriel Rossetti <[EMAIL PROTECTED]> (GR) wrote: >GR> not a stupid question, I think that may be it. I tried setting PYTHONPATH >GR> like Sam suggested and it worked, but I was unable to do it programmically. >GR> I tried putting it in the __init__.py file like a web post suggested but it >G

Re: execute python script question

2008-03-11 Thread Gabriel Rossetti
Michael Wieher wrote: > stupid question: you have myPackage somewhere on sys.path? > > I mean, module1.py only knows it lives in a directory, it doesn't know > anything about anything above it. > > > > 2008/3/10, Gabriel Rossetti <[EMAIL PROTECTED] > >: > > Hello, >

Re: execute python script question

2008-03-11 Thread Gabriel Rossetti
Sam wrote: > Hello, > > I may misunderstand your problem, but it may be related to the > execution environment, especially the PYTHONPATH variable. Have a look > at the following log: > > [EMAIL PROTECTED]:/$ pwd > / > [EMAIL PROTECTED]:/$ cat -n /tmp/test_import.py > 1 class A(object): >

Re: execute python script question

2008-03-10 Thread Sam
Hello, I may misunderstand your problem, but it may be related to the execution environment, especially the PYTHONPATH variable. Have a look at the following log: [EMAIL PROTECTED]:/$ pwd / [EMAIL PROTECTED]:/$ cat -n /tmp/test_import.py 1 class A(object): 2 def __init__(self):