0023551: Move data models contained in samples subfolder of OCCT repository to common...
[occt.git] / samples / mfc / standard / 09_Animation / src / AnimationDoc.cpp
index 840f2b0..7b9e9e0 100755 (executable)
@@ -364,8 +364,9 @@ void CAnimationDoc::OnFileLoadgrid()
                  L"Points Files (*.pnt;*.pnts)|*.pnt; *.pnts|All Files (*.*)|*.*||",
                  NULL );
 
-       CString initdir(((OCC_App*) AfxGetApp())->GetInitDataDir());
-       initdir += "\\Data\\";
+       CString initdir;
+       initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
+       initdir += L"\\occ\\";
 
        dlg.m_ofn.lpstrInitialDir = initdir;