Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'ASL_TREE_STATE' into asl/hydro_porting_741
[modules/gui.git]
/
src
/
PyConsole
/
PyConsole_Interp.cxx
diff --git
a/src/PyConsole/PyConsole_Interp.cxx
b/src/PyConsole/PyConsole_Interp.cxx
index 9d3d996caa3976c73a4ed41a16c7d6cbd83e12d9..c4b208180bb5c4a8d1c23cfe21bd4606afda42f9 100644
(file)
--- a/
src/PyConsole/PyConsole_Interp.cxx
+++ b/
src/PyConsole/PyConsole_Interp.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
3
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-77,6
+77,7
@@
bool PyConsole_Interp::initContext()
PyErr_Print();
return false;
}
PyErr_Print();
return false;
}
- _context = PyModule_GetDict(m); // get interpreter dictionnary context
+ PyObject* global_dict = PyModule_GetDict(m); // get interpreter dictionnary context
+ _context = PyDict_Copy(global_dict);
return true;
}
return true;
}