From: mpv Date: Mon, 3 Jun 2019 13:05:25 +0000 (+0300) Subject: 0030761: Application Framework - HOMEDRIVE and TEMP are undefined on UWP X-Git-Tag: V7_4_0_beta~116 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7f662bf4eff610473951f8f03a3cd278d097e03e;p=occt-copy.git 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. --- diff --git a/src/CDF/CDF_FWOSDriver.cxx b/src/CDF/CDF_FWOSDriver.cxx index a8c84c3263..b555fdab34 100644 --- a/src/CDF/CDF_FWOSDriver.cxx +++ b/src/CDF/CDF_FWOSDriver.cxx @@ -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"); diff --git a/src/CDF/CDF_Store.cxx b/src/CDF/CDF_Store.cxx index 74baa5e148..60c780bf70 100644 --- a/src/CDF/CDF_Store.cxx +++ b/src/CDF/CDF_Store.cxx @@ -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();