Avoid CDF_Stroe to find default folder since there is no case where this folder does not reset to exact value given by the user.
Also, remove the exception raising for the case this method is called from outside.
else {
theDefaultFolder=UTL::xgetenv("TEMP");
if(theDefaultFolder.Length()==0)
- throw Standard_Failure("cannot determine default folder; HOMEDRIVE and TEMP are undefined");
+ theDefaultFolder = ".";
}
#else
TCollection_ExtendedString home=UTL::xgetenv("HOME");
myCurrentDocument = myMainDocument;
myList = new CDF_StoreList(myCurrentDocument);
- myIsMainDocument = Standard_True;
- FindDefault();
-
-// getting the subcomponents.
+ // getting the subcomponents.
//
myIsMainDocument = Standard_False;
myList->Init();