From: cas Date: Mon, 3 Apr 2000 11:19:21 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=944fea0211f2186a1a2ecefb5972f9adf851a1fe;p=occt-wok.git No comments --- diff --git a/src/WOKernel/WOKernel_Locator.cxx b/src/WOKernel/WOKernel_Locator.cxx index aebcf96..580ac2d 100755 --- a/src/WOKernel/WOKernel_Locator.cxx +++ b/src/WOKernel/WOKernel_Locator.cxx @@ -24,6 +24,10 @@ #include #endif +//---> EUG4JR +extern Standard_Boolean g_fForceLib; +//<--- EUG4JR + //======================================================================= //function : WOKernel_Locator //purpose : @@ -171,7 +175,10 @@ const Handle(WOKernel_File)& WOKernel_Locator::Locate(const Handle(TCollection_H Handle(WOKernel_File) afile; Handle(TCollection_HAsciiString) astr; Standard_Integer i; - +//---> EUG4JR + static Handle( TCollection_HAsciiString ) libType = new TCollection_HAsciiString ( "library" ); + Standard_Boolean fLibrary = atype -> IsSameString ( libType ) && g_fForceLib; +//<--- EUG4JR WOK_TRACE { VerboseMsg("WOK_LOCATOR") << "WOKernel_Locator::Locate" << "Searching for " << locatorname << endm; @@ -219,9 +226,9 @@ const Handle(WOKernel_File)& WOKernel_Locator::Locate(const Handle(TCollection_H astr = aunit->GetFileType(atype)->ComputePath(aunit->Params(), aname); if (!astr.IsNull()) { #ifndef WNT - if(!access(astr->ToCString(), F_OK)) + if(!access(astr->ToCString(), F_OK)||fLibrary) #else - if ( GetFileAttributes(astr->ToCString()) != 0xFFFFFFFF ) + if ( (GetFileAttributes(astr->ToCString()) != 0xFFFFFFFF)||fLibrary ) #endif { WOK_TRACE {