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? -- https://mail.python.org/mailman/listinfo/python-list