#! /usr/bin/python3

#(c) 2016 by Authors
#This file is a part of ABruijn program.
#Released under the BSD license (see LICENSE file)

"""
This script sets up environment paths
and invokes Flye without installation.
"""

import os
import sys

BIN_DIR = "bin"

#Setting executable paths
flye_root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
bin_absolute = os.path.join(flye_root, BIN_DIR)
sys.path.insert(0, flye_root)
os.environ["PATH"] = bin_absolute + os.pathsep + os.environ["PATH"]

#Flye entry point
from flye.main import main
sys.exit(main())
