# Path: fluxghost/launcher.py
# def setup_env(options):
#     check_fluxclient()
#     setup_logger(options)
# 
# def show_version(verbose):
#     from fluxghost import __version__ as gfv
#     print("fluxghost %s" % gfv)
#     from fluxclient import __version__ as cfv
#     print("fluxclient %s" % cfv)


from signal import SIGTERM
from time import sleep
from fluxghost.launcher import setup_env, show_version
    from threading import Thread
    from fluxghost.http_server import HttpServer
        from tests.main import main
import argparse
import sys
import os
            import ctypes
            sys.stderr.write("%s\n" % e)
        finally:
            os.kill(os.getpid(), SIGTERM)

    def _posix():
        try:
            while True:
                os.kill(pid, 0)
                sleep(0.8)
        except:
            pass
        finally:
            os.kill(os.getpid(), SIGTERM)

    if os.name == "posix":
        fn = _posix
    elif os.name == "nt":
        fn = _nt
    else:
        raise RuntimeError("Unknown os.name %r" % os.name)

    t = Thread(target=fn)
    t.daemon = True
    t.start()


def main():
    parser = argparse.ArgumentParser(description='FLUX Ghost')
    parser.add_argument("--assets", dest='assets', type=str,
                        default=None, help="Assets folder")

# Path: fluxghost/launcher.py
# def setup_env(options):
#     check_fluxclient()
#     setup_logger(options)
# 
# def show_version(verbose):
#     from fluxghost import __version__ as gfv
#     print("fluxghost %s" % gfv)
#     from fluxclient import __version__ as cfv
#     print("fluxclient %s" % cfv)


# Path: ghost.py
from signal import SIGTERM
from time import sleep
from fluxghost.launcher import setup_env, show_version
    from threading import Thread
    from fluxghost.http_server import HttpServer
        from tests.main import main
import argparse
import sys
import os
            import ctypes

            sys.stderr.write("%s\n" % e)
        finally:
            os.kill(os.getpid(), SIGTERM)

    def _posix():
        try:
            while True:
                os.kill(pid, 0)
                sleep(0.8)
        except:
            pass
        finally:
            os.kill(os.getpid(), SIGTERM)

    if os.name == "posix":
        fn = _posix
    elif os.name == "nt":
        fn = _nt
    else:
        raise RuntimeError("Unknown os.name %r" % os.name)

    t = Thread(target=fn)
    t.daemon = True
    t.start()


def main():
    parser = argparse.ArgumentParser(description='FLUX Ghost')
    parser.add_argument("--assets", dest='assets', type=str,
                        default=None, help="Assets folder")

    parser.add_argument("--ip", dest='ipaddr', type=str, default='127.0.0.1',