check_ovhcloud/lib/__init__.py

14 lines
304 B
Python
Raw Normal View History

import logging
import os
def show_version():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "VERSION"), "r"
) as fd:
print(fd.read().strip())
def setup_logging(args):
logging.basicConfig(format="%(levelname)s: %(message)s", level=args.loglevel)