#NEWLINE# def _serialiseEnv( self ) : #NEWLINE# #INDENT# '\n        Puts the environment in a globally accessible pickle file.\n        ' #NEWLINE# with self . _jobStore . writeSharedFileStream ( 'environment.pickle' ) as fileHandle : #NEWLINE# #INDENT# cPickle . dump ( os . environ , fileHandle , cPickle . HIGHEST_PROTOCOL ) #NEWLINE# #UNINDENT# logger . info ( 'Written the environment for the jobs to the environment file' )