def _redirect_eliot_logs_for_trial():
 import os
 import sys
 if (os.path.basename(sys.argv[0]) == 'trial'):
  from eliot.twisted import redirectLogsForTrial
  redirectLogsForTrial()

def _redirect_eliot_logs_for_trial ( ) : import os import sys if ( os . path . basename ( sys . argv [ 0 ] ) == 'trial' ) : from eliot . twisted import redirectLogsForTrial redirectLogsForTrial ( )
enable eliot logging to the _trial/test .