Re: problem with packages and path

2008-08-29 Thread Daniel
On Aug 29, 1:15 pm, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 29 Aug, 19:08, Daniel <[EMAIL PROTECTED]> wrote: > > > > > > > I have tried running both commands above from the mypackage directory > > and unittests directory.  I get the following response universtally. > > > C:\mypackage>dir > >  V

Re: problem with packages and path

2008-08-29 Thread Paul Boddie
On 29 Aug, 19:08, Daniel <[EMAIL PROTECTED]> wrote: > > I have tried running both commands above from the mypackage directory > and unittests directory. I get the following response universtally. > > C:\mypackage>dir > Volume in drive C is Default > > Directory of C:\mypackage > > 08/29/2008 11

Re: problem with packages and path

2008-08-29 Thread Daniel
On Aug 28, 2:28 am, "Marco Bizzarri" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 27, 2008 at 6:44 PM, Daniel <[EMAIL PROTECTED]> wrote: > > Hello, > > > I'm writing some unit tests for my python software which uses > > packages.  Here is the basic structure: > > > mypackage > >  __init__.py > >  modul

Re: problem with packages and path

2008-08-28 Thread Marco Bizzarri
On Wed, Aug 27, 2008 at 6:44 PM, Daniel <[EMAIL PROTECTED]> wrote: > Hello, > > I'm writing some unit tests for my python software which uses > packages. Here is the basic structure: > > mypackage > __init__.py > module1 >__init__.py >mod1.py > module2 >__init__.py >mod2.py > u

Re: problem with packages and path

2008-08-27 Thread Daniel
On Aug 27, 11:00 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 27 Aug, 18:44, Daniel <[EMAIL PROTECTED]> wrote: > > > > > I'm writing some unit tests for my python software which uses > > packages.  Here is the basic structure: > > > mypackage > > [...] > > >   unittests > >     __init__.py > >  

Re: problem with packages and path

2008-08-27 Thread Daniel
On Aug 27, 11:00 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 27 Aug, 18:44, Daniel <[EMAIL PROTECTED]> wrote: > > > > > I'm writing some unit tests for my python software which uses > > packages.  Here is the basic structure: > > > mypackage > > [...] > > >   unittests > >     __init__.py > >  

Re: problem with packages and path

2008-08-27 Thread Paul Boddie
On 27 Aug, 18:44, Daniel <[EMAIL PROTECTED]> wrote: > > I'm writing some unit tests for my python software which uses > packages.  Here is the basic structure: > > mypackage [...] >   unittests >     __init__.py >     alltests.py >     test1.py >     test2.py > > within alltests.py I would expect

problem with packages and path

2008-08-27 Thread Daniel
Hello, I'm writing some unit tests for my python software which uses packages. Here is the basic structure: mypackage __init__.py module1 __init__.py mod1.py module2 __init__.py mod2.py unittests __init__.py alltests.py test1.py test2.py within alltests.p

Re: Problem with Packages

2007-03-08 Thread Gabriel Genellina
En Thu, 08 Mar 2007 05:26:45 -0300, Srikanth <[EMAIL PROTECTED]> escribió: >> It appears that you forgot the basic rule: a package is a directory with >> an __init__.py file (even if empty). > > Exactly right. I didn't know that __init__.py is a mandatory one. > Thanks for pointing out. You may w

Re: Problem with Packages

2007-03-08 Thread Srikanth
> It appears that you forgot the basic rule: a package is a directory with > an __init__.py file (even if empty). Exactly right. I didn't know that __init__.py is a mandatory one. Thanks for pointing out. > > my_apps > > | > > |--> mod3.py > > |--> dir1/dir1_1/mod1.py > > |--> dir2/dir2_2/mod2.py

Re: Problem with Packages

2007-03-07 Thread Gabriel Genellina
En Thu, 08 Mar 2007 02:37:51 -0300, Srikanth <[EMAIL PROTECTED]> escribió: > I am learning about Python packages and I am getting an ImportError > but I can't figure out the reason why. It appears that you forgot the basic rule: a package is a directory with an __init__.py file (even if empty).

Problem with Packages

2007-03-07 Thread Srikanth
Hi, I am learning about Python packages and I am getting an ImportError but I can't figure out the reason why. I have three modules and they are stored in a directory hierarchy as: my_apps | |--> mod3.py |--> dir1/dir1_1/mod1.py |--> dir2/dir2_2/mod2.py mod1.py defines a function called add(num