#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import os

# To make it run from a cloned repository
if sys.argv[0] == './bin/omnic':
    root = os.path.dirname(os.path.dirname(__file__))
    sys.path.append(os.path.abspath(root))

from omnic import singletons
singletons.settings  # Ensure settings gets loaded

from omnic.cli.commands import main
main()
