- #ifdef __WXMAC__
- if ( right[0] != '.' && right[0] != '/' && right.Find( '/' ) != wxNOT_FOUND ) {
- right = "./" + right ;
- }
- right = wxUnix2MacFilename( right ) ;
- #endif
- if (!wxFileExists(right))
+ wxFileName fn( right, wxPATH_UNIX );
+
+ if (!wxFileExists( fn.GetFullPath() ))