https://github.com/fenderglass/Ragout
Revision 66fe2be7bd655c9e29c605fbc44df02d3dc0f50f authored by fenderglass on 21 June 2014, 09:17:16 UTC, committed by fenderglass on 21 June 2014, 09:17:16 UTC
1 parent 7059a3e
Tip revision: 66fe2be7bd655c9e29c605fbc44df02d3dc0f50f authored by fenderglass on 21 June 2014, 09:17:16 UTC
newick parser
newick parser
Tip revision: 66fe2be
ragout.py
#!/usr/bin/env python2.7
"""
This script does all the necessary preparations
and invokes Ragout
"""
import os
import sys
LIB_DIR = "lib"
#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.realpath(__file__))
lib_absolute = os.path.join(ragout_root, LIB_DIR)
sys.path.extend([ragout_root, lib_absolute])
os.environ["PATH"] += os.pathsep + lib_absolute
#Ragout entry point
from ragout.main import main
sys.exit(main())
Computing file changes ...