Development testing without reinstalling egg constantly?
Peter Otten
__peter__ at web.de
Thu Jun 29 11:17:45 EDT 2017
Grant Edwards wrote:
> The projects 'main.py' can't be run directly from the command line,
> since it contains code like this:
>
> from . import config
> from . import __version__
> __name__ = 'muttdown'
>
> [ stuff that does real work ]
Stupid question: isn't the following
>
> if __name__ == '__main__':
> main()
dead code then?
Actually, two stupid questions: what is
> __name__ = 'muttdown'
supposed to achieve in the first place?
More information about the Python-list
mailing list