Beispiel #1
0
def main(as_module=False):
    """Run run the library module as a script."""
    # TODO omit sys.argv once https://github.com/pallets/click/issues/536 is fixed
    import sys
    cli.main(args=sys.argv[1:],
             prog_name="python -m sample_db" if as_module else None)
Beispiel #2
0
def main(as_module=False):
    """Define a main function for executing the module."""
    # TODO omit sys.argv once https://github.com/pallets/click/issues/536 is fixed
    import sys
    cli.main(args=sys.argv[1:],
             prog_name="python -m lccs_db" if as_module else None)