research-rainfallradar/aimodel/src/index.py

27 lines
444 B
Python
Executable file

#!/usr/bin/env python3
import importlib
import sys
from loguru import logger
def init_logging():
pass
from parse_args import parse_args
def main():
subcommand, args = parse_args()
if args == None:
return
imported_module = importlib.import_module(f"subcommands.{subcommand}")
imported_module.run(args)
if __name__ == "__main__":
main()
else:
print("This script must be run directly. It cannot be imported.")
exit(1)