Re: [Mailman-Developers] [CLI Project] Added Backup and Restore Tool

Rajeev S writes:
Further, The mmclient.py *should have* a callable function for it to work as a module entry point (a.k.a shell command), when installed through
python setup.py install
. The created executable doesimport
the mmclient
I still don't understand this. You have a module whose "main function" would perfectly servicable as "the executable" if you unwrap it (delete the "def main" statement and fix indentation), and in fact doesn't serve any purpose other than to be imported into a generated script? Seems to violate TOOWDTI to me.

Hi,
On Friday 08 August 2014 05:41 PM, Stephen J. Turnbull wrote:
I still don't understand this. You have a module whose "main function" would perfectly servicable as "the executable" if you unwrap it (delete the "def main" statement and fix indentation), and in fact doesn't serve any purpose other than to be imported into a generated script? Seems to violate TOOWDTI to me.
Fixed that. There was another argument for setuptools called scripts
which does the
required task, that is, does not require the executable to have a callable.
participants (2)
-
Rajeev S
-
Stephen J. Turnbull