def main(module=None):
    """
    Entry point.
    """
    if not module:
        #Parsing
        parser = argparse.ArgumentParser()
        parser.add_argument('-s', '--start', type=str, help='Start the module', required=True,
                            dest='module')
        args = parser.parse_args()
        module = args.module
    #1. Load settings
    farine.settings.load()
    #2. Load the module
    farine.discovery.import_module(module)
    #3. Start the module
    farine.discovery.start()
def main ( module = None ) : if not module : parser = argparse . ArgumentParser ( ) parser . add_argument ( '-s' , '--start' , type = str , help = 'Start the module' , required = True , dest = 'module' ) args = parser . parse_args ( ) module = args . module farine . settings . load ( ) farine . discovery . import_module ( module ) farine . discovery . start ( )
Entry point.