0023551: Move data models contained in samples subfolder of OCCT repository to common...
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryDoc.cpp
index 8da0c20..9674c8a 100755 (executable)
@@ -1070,8 +1070,9 @@ void CGeometryDoc::OnCreateSol()
   CFileDialog dlg (TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
                    L"Points Files (*.dat)|*.dat; |All Files (*.*)|*.*||", NULL);
 
-  CString initdir(((OCC_App*) AfxGetApp())->GetInitDataDir());
-  initdir += L"\\Data\\SurfaceFromPoints";
+  CString anOCCTDataPathValue;
+  anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
+  CString initdir = (anOCCTDataPathValue + L"\\occ\\SurfaceFromPoints");
 
   dlg.m_ofn.lpstrInitialDir = initdir;