#!/bin/sh
#
# PyMOL startup script
#
# ==============================================================
# Set PYMOL_PATH to point at the correct location on your system
#
PYMOL_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pymol/pymol_path
export PYMOL_PATH
#
# ==============================================================
# (no changes usually required below here)
#
# python modules
#
HasRadeon=($(system_profiler SPDisplaysDataType | grep Radeon ))
if [[ -z "$HasRadeon"  ]];then
  exec /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13 /opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pymol/__init__.py -d "_ set stereo_double_pump_mono,quiet=1" "$@"
else
  exec /opt/local/Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13 /opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pymol/__init__.py -d "_ set stereo_double_pump_mono,quiet=1" "-M" "$@"
fi
