#!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK

# Copyright 2019 Portmod Authors
# Distributed under the terms of the GNU General Public License v3

import sys
from os import path as osp

if __name__ == "__main__":
    if osp.isfile(
        osp.join(
            osp.dirname(osp.dirname(osp.realpath(__file__))), ".portmod_not_installed"
        )
    ):
        sys.path.insert(0, osp.dirname(osp.dirname(osp.realpath(__file__))))

    from portmod._cli.main import main

    main()
