[Baypiggies] Entry points help

Glen Jarvis glen at glenjarvis.com
Wed Feb 13 17:11:24 CET 2013


Left over from my project before I converted it into a small demo to illustrate.

G

On Feb 12, 2013, at 10:39 PM, Aahz <aahz at pythoncraft.com> wrote:

> 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
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies


More information about the Baypiggies mailing list