How can I use my modules here?

2009-09-11 Thread Kermit Mei
Hello community! I write a modules for testing, and my code is like this(under Linux): $ tree . |-- MyTestModules | |-- Test1.py | |-- Test2.py | `-- __init__.py `-- main.py 1 directory, 4 files $ find . -name '*.py' -print0|xargs -0 cat main.py Begin ##

Re: How can I use my modules here?

2009-09-11 Thread Chris Rebert
On Fri, Sep 11, 2009 at 2:24 AM, Kermit Mei kermit@gmail.com wrote: Hello community! I write a modules for testing, and my code is like this(under Linux): $ tree . |-- MyTestModules |   |-- Test1.py |   |-- Test2.py |   `-- __init__.py `-- main.py 1 directory, 4 files $ find .

Re: How can I use my modules here?

2009-09-11 Thread Albert Hopkins
On Fri, 2009-09-11 at 02:29 -0700, Chris Rebert wrote: For some reason, your Python program is being executed by bash as if it were a shell script, which it's not. No idea what the cause is though. Because the first 2 bytes of the file need to be #!/path/to/interpreter, the OP has:

Re: How can I use my modules here?

2009-09-11 Thread Kermit Mei
On Fri, 2009-09-11 at 07:48 -0400, Albert Hopkins wrote: On Fri, 2009-09-11 at 02:29 -0700, Chris Rebert wrote: For some reason, your Python program is being executed by bash as if it were a shell script, which it's not. No idea what the cause is though. Because the first 2 bytes of the

Re: How can I use my modules here?

2009-09-11 Thread Diez B. Roggisch
Chris Rebert wrote: On Fri, Sep 11, 2009 at 2:24 AM, Kermit Mei kermit@gmail.com wrote: Hello community! I write a modules for testing, and my code is like this(under Linux): $ tree . |-- MyTestModules | |-- Test1.py | |-- Test2.py | `-- __init__.py `-- main.py 1 directory, 4