#!/usr/bin/env python3 import os import sys from hypernode_api_python import commands if __name__ == '__main__': command = os.path.basename(__file__) if hasattr(commands, command): sys.exit(getattr(commands, command)() or 0) else: sys.stderr.write("Command '{}' not found in hypernode_api_python.commands\n".format(command)) sys.exit(1)