obspy.core.util.base.get_script_dir_name

get_script_dir_name()[source]

Get the directory of the current script file. This is more robust than using __file__.