#!/bin/bash
source /scisoft/ESRF_sw/linux_i386_03/set_environment

# export LD_LIBRARY_PATH=/opt/ESRF_sw/lib:$LD_LIBRARY_PATH
# PYMOL=/scisoft/pymol/pymol.com
OP_HOME=/users/mirone/openphonon/
 
export DABAX_DIR=/users/mirone/openphonon/DABAXFILES


first_a=${OP_HOME}$1


if [ $1 == "structureRendering.py" ] ; then
	$PYMOL $first_a ${*:2}
elif [ $1 == "eigenRendering.py" ] ; then
	$PYMOL $first_a ${*:2}	
else
  python $first_a ${*:2} 
fi