mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0030761: Application Framework - HOMEDRIVE and TEMP are undefined on UWP
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.
This commit is contained in:
@@ -180,7 +180,7 @@ TCollection_ExtendedString CDF_FWOSDriver::DefaultFolder()
|
||||
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");
|
||||
|
@@ -46,10 +46,7 @@ void CDF_Store::Init() {
|
||||
myCurrentDocument = myMainDocument;
|
||||
myList = new CDF_StoreList(myCurrentDocument);
|
||||
|
||||
myIsMainDocument = Standard_True;
|
||||
FindDefault();
|
||||
|
||||
// getting the subcomponents.
|
||||
// getting the subcomponents.
|
||||
//
|
||||
myIsMainDocument = Standard_False;
|
||||
myList->Init();
|
||||
|
Reference in New Issue
Block a user