Raw File
Tip revision: f1e7a745418642456e637d3626efaaaeb79c6d6d authored by Mikhail Kolmogorov on 17 March 2020, 21:36:20 UTC
forgot to update
Tip revision: f1e7a74
#!/usr/bin/env python3

#(c) 2013-2014 by Authors
#This file is a part of Ragout program.
#Released under the BSD license (see LICENSE file)

This script does all the necessary preparations
and invokes Ragout

import os
import sys

BIN_DIR = "bin"

#Check Python version
#if sys.version_info[:2] != (2, 7):
#    print("Error: Ragout requires Python version 2.7 ({0}.{1} detected)."
#          .format(sys.version_info[0], sys.version_info[1]))
#    sys.exit(-1)

#Setting executable paths
ragout_root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.insert(0, ragout_root)

bin_absolute = os.path.join(ragout_root, BIN_DIR)
os.environ["PATH"] = bin_absolute + os.pathsep + os.environ["PATH"]

#Ragout entry point
from ragout.main import main
back to top