Re: Help with modules/packages.

2004-12-04 Thread Nick Coghlan
Christopher J. Bottaro wrote: Hello, I want to be able to say stuff like "import CJB.ClassA" and "import CJB.ClassB" then say "c = CJB.ClassA()" or "c = CJB.ClassB()". CJB will be a directory containing files "ClassA.py" and "ClassB.py". Now that I think about it, that can't work b

Re: Help with modules/packages.

2004-12-04 Thread M.E.Farmer
"Christopher J. Bottaro" <[EMAIL PROTECTED]> wrote in message Hello Christopher, You probably know this but I will mention it here for completeness, if you want to be able to make a dir a package you also need to add an __init__.py in the folder you wish to import from. The __init__.py makes t

Re: Help with modules/packages.

2004-12-04 Thread Steve Holden
Christopher J. Bottaro wrote: Hello, I want to be able to say stuff like "import CJB.ClassA" and "import CJB.ClassB" then say "c = CJB.ClassA()" or "c = CJB.ClassB()". CJB will be a directory containing files "ClassA.py" and "ClassB.py". Now that I think about it, that can't work b