#NEWLINE# def expand_path( value , base ) : #NEWLINE# #INDENT# value = os . path . expanduser ( value ) #NEWLINE# if ( not os . path . isabs ( value ) ) : #NEWLINE# #INDENT# value = os . path . join ( base , value ) #NEWLINE# #UNINDENT# return os . path . normpath ( value )