]> OCCT Git - occt-wok.git/commitdiff
OCC13817, OCC13143, OCC13648 WOK improvements
authorcascade <cascade@opencascade.com>
Fri, 9 Feb 2007 20:13:24 +0000 (20:13 +0000)
committercascade <cascade@opencascade.com>
Fri, 9 Feb 2007 20:13:24 +0000 (20:13 +0000)
src/EDL/EDL_Interpretor.cxx

index 14c63af90d0c7000676dab4e8ef8aa6354087588..ccc2cd5767f16bdb5f97efb24c8cd35578227e1a 100755 (executable)
@@ -147,9 +147,15 @@ EDL_Error EDL_Interpretor::Parse(const Standard_CString aFile)
   if (aFile != NULL) {
     FILE *fic = 0L;
     DirCount  = 1;
-
-    if (   (  fic = fopen ( aFile, "r" )  ) != NULL   ) {
-      IsFound = Standard_True;
+#ifndef WNT
+    if( !access(aFile, F_OK) ) 
+#else
+    if ( GetFileAttributes(aFile) != 0xFFFFFFFF ) 
+#endif
+    {
+      if (   (  fic = fopen ( aFile, "r" )  ) != NULL   ) {
+        IsFound = Standard_True;
+      }
     }
 
     while (!IsFound && DirCount <= IncludeDirectory->Length()) {