[Baypiggies] Entry points help

Aahz aahz at pythoncraft.com
Wed Feb 13 07:39:20 CET 2013


On Tue, Feb 12, 2013, Glen Jarvis wrote:
>
> I have a directory like this:
> 
> baypiggies
>    - __init__.py
>    - fruit.py
>    - meat.py
>    - mock.py
>    - runner.py
> 
> My runner.py is the main entry point and it is used to dynamically chose
> which of these other files to import.
> 
> # pylint: disable=C0103,R0904
> 
> ./runner.py --backend=fruit

Why do you have __init__.py?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Times are bad.  Children no longer obey their parents, and everyone is
writing a book."  --Cicero


More information about the Baypiggies mailing list