#!/usr/bin/env python
# coding: utf-8
###################################################################
# Copyright (c) 2016-2020 European Synchrotron Radiation Facility #
#                                                                 #
# Authors: Marius Retegan                                         #
#                                                                 #
# This work is licensed under the terms of the MIT license.       #
# For further information, see https://github.com/mretegan/crispy #
###################################################################
"""The module provides a simple application launcher"""

import os
import sys

try:
    from crispy.main import main
except ImportError:
    # The package is run without being installed; its path must be first
    # added to sys.path.
    path = os.path.join(os.path.dirname(__file__), os.path.pardir)
    sys.path.insert(0, os.path.abspath(path))
    from crispy.main import main

if __name__ == "__main__":
    main()
