#NEWLINE# @ expose ( 'resolve-path' , [ values . W_Object ] ) #NEWLINE# def resolve_path( obj ) : #NEWLINE# #INDENT# if ( ( not isinstance ( obj , values_string . W_String ) ) and ( not isinstance ( obj , values . W_Path ) ) ) : #NEWLINE# #INDENT# raise SchemeException ( 'resolve-path: expected path-string' ) #NEWLINE# #UNINDENT# str = extract_path ( obj ) #NEWLINE# return values . W_Path ( os . path . normpath ( obj ) )