def inHiero(): '''Return True if this is run from inside of Hiero, else return False''' return 'Hiero' in QtGui.QApplication.applicationName()