obspy.core.util.base.getScriptDirName

getScriptDirName()[source]

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