#NEWLINE# def make_relative_to( self , kwds , relative_to ) : #NEWLINE# #INDENT# if ( relative_to and os . path . dirname ( relative_to ) ) : #NEWLINE# #INDENT# dirname = os . path . dirname ( relative_to ) #NEWLINE# kwds = kwds . copy ( ) #NEWLINE# for key in ffiplatform . LIST_OF_FILE_NAMES : #NEWLINE# #INDENT# if ( key in kwds ) : #NEWLINE# #INDENT# lst = kwds [ key ] #NEWLINE# if ( not isinstance ( lst , ( list , tuple ) ) ) : #NEWLINE# #INDENT# raise TypeError ( ( "keyword '%s' should be a list or tuple" % ( key , ) ) ) #NEWLINE# #UNINDENT# lst = [ os . path . join ( dirname , relative_to ) for fn in lst ] #NEWLINE# kwds [ key ] = lst #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return kwds