#!/usr/bin/env python

###################################################################################
#                                                                                 #
#  Monte Carlo Particle Lists : MCPL                                              #
#                                                                                 #
#  Application providing the pymcpltool. This actually just means importing the   #
#  mcpl.py module and running the main() function found there.                    #
#                                                                                 #
#  Find more information and updates at https://mctools.github.io/mcpl/           #
#                                                                                 #
#  This file can be freely used as per the terms in the LICENSE file.             #
#                                                                                 #
#  Written by Thomas Kittelmann, 2017.                                            #
#                                                                                 #
###################################################################################

#Import mcpl module (with a fall-back sys.path edit, so the tool can be run
#from an MCPL installation even though the user did not set PYTHONPATH correctly):
try:
    import mcpl
except ImportError:
    import sys, os
    try:
        sys.path.insert(0,os.path.join(os.path.dirname(__file__)))
        import mcpl
    except ImportError:
        sys.path.insert(0,os.path.join(os.path.dirname(__file__),'..','python'))
        import mcpl

#Launch tool:
mcpl.main()
