Dan wrote:
>>>no executable code in
>>>__init__.py is executed, even though "import test" seems to succeed.
>
> I've discovered that "import test" *does* cause executable code in the
> package to be executed. However, I can't execute it on the command line
> using "python test". Is there a way to
> > no executable code in
> > __init__.py is executed, even though "import test" seems to succeed.
I've discovered that "import test" *does* cause executable code in the
package to be executed. However, I can't execute it on the command line
using "python test". Is there a way to do this?
> There
Dan Richter wrote:
> I'm trying to create a package+module structure, specifically a "test"
> package with all the unit tests. I'd like to have a package (directory)
> "test" that has various test modules, and I'd also like "test" itself to
> be a module that runs all the tests. Is this not possibl