Enforce version on CLI when accessing 'tomodachi.py' directly
"""tomodachi.py: microservice framework"""
-import tomodachi.cli
+import sys
if __name__ == "__main__":
+ if not sys.version_info >= (3, 5):
+ print("tomodachi doesn't support Python earlier than 3.5")
+ sys.exit(1)
+
+ import tomodachi.cli
tomodachi.cli.cli_entrypoint()
