#!/usr/bin/env python

#  Copyright (c) 2013 - 2020 Adam Caudill and Contributors.
#  This file is part of YAWAST which is released under the MIT license.
#  See the LICENSE file or go to https://yawast.org/license/ for full license details.

import os
import sys

if __name__ == "__main__":
    import multiprocessing

    multiprocessing.freeze_support()
    if getattr(sys, "frozen", False):
        # frozen
        dir_ = os.path.dirname(sys.executable)
    else:
        # unfrozen
        dir_ = os.path.dirname(os.path.realpath(__file__))
    sys.path.append(os.path.abspath(os.path.join(dir_, "..")))

    from yawast import __main__

    __main__.main()
