1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0027737: Remove hardcoded paths to data folders in mfc samples

Data shapes (used in samples) were moved into CSF_OCCTDataPath location.
This commit is contained in:
ski
2016-12-09 11:38:28 +03:00
committed by apn
parent baaacd4683
commit 92345dc222
48 changed files with 25 additions and 52788 deletions

View File

@@ -1155,9 +1155,9 @@ static Standard_Boolean fixParam(Standard_Real& theParam)
void CGeometryDoc::OnSimplify()
{
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
initfile += L"\\..\\..\\..\\samples\\mfc\\standard\\01_Geometry\\Data\\";
initfile += L"shell1.brep";
CString anOCCTDataPathValue;
anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
CString initfile = (anOCCTDataPathValue + L"\\occ\\shell1.brep");
std::filebuf aFileBuf;
std::istream aStream (&aFileBuf);