From fd31f4c605d9663ee6cbd4c60fad102a4d73a190 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 14 May 2009 13:09:38 +0000 Subject: [PATCH] Rollback previous integration --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 2fa36c294..063562ae3 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1210,24 +1210,13 @@ bool SALOMEDSImpl_Study::DumpStudy(const string& thePath, //set sys.path and add a creation of the study. fp << GetDumpStudyComment() << endl << endl; fp << "import sys" << endl; - fp << "import os.path" << endl; fp << "import " << aBatchModeScript << endl << endl; fp << aBatchModeScript << ".salome_init()" << endl << endl; - fp << _GetNoteBookAccess() << endl; - - // IPAL21005 (Dump/load python script works only with absolute path) - // try to use '__file__' to get an absolute path to the generated scripts - // or use the path passed to this method (case of using execfile() command) - fp << "#Get absolute path to generated scripts:" << endl; - fp << "try:" << endl; - fp << " absPath = os.path.dirname(__file__)" << endl; - fp << "except NameError:" << endl; - fp << " absPath = \'" << thePath << "\'" << endl; - fp << " pass" << endl; - fp << "sys.path.insert( 0, absPath )" << endl << endl; - //fp << "sys.path.insert( 0, \'" << thePath << "\')" << endl << endl; + fp << _GetNoteBookAccess(); + + fp << "sys.path.insert( 0, \'" << thePath << "\')" << endl << endl; //Dump NoteBook Variables fp << _GetStudyVariablesScript(); -- 2.39.2