#NEWLINE# def set_environment_variables( self , version ) : #NEWLINE# #INDENT# 'sets the environment variables according to the given Version\n        instance\n        ' #NEWLINE# if ( not version ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# logger . debug ( ( 'version: %s' % version ) ) #NEWLINE# logger . debug ( ( 'version.path: %s' % version . absolute_path ) ) #NEWLINE# logger . debug ( ( 'version.filename: %s' % version . filename ) ) #NEWLINE# logger . debug ( ( 'version.full_path: %s' % version . absolute_full_path ) ) #NEWLINE# logger . debug ( ( 'version.full_path (calculated): %s' % os . path . join ( version . absolute_full_path , version . filename ) . replace ( '\\' , '/' ) ) ) #NEWLINE# job = str ( version . absolute_path ) #NEWLINE# hip = job #NEWLINE# hip_name = os . path . basename ( str ( version . absolute_full_path ) ) #NEWLINE# logger . debug ( ( 'job     : %s' % job ) ) #NEWLINE# logger . debug ( ( 'hip     : %s' % hip ) ) #NEWLINE# logger . debug ( ( 'hipName : %s' % hip_name ) ) #NEWLINE# self . set_environment_variable ( 'JOB' , job ) #NEWLINE# self . set_environment_variable ( 'HIP' , hip ) #NEWLINE# self . set_environment_variable ( 'HIPNAME' , job )