#! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
self.context["my_container"] = self.my_container
exec ccode in self.context
+ def defineNewCustomVar(self,varName,valueOfVar):
+ self.context[varName] = cPickle.loads(valueOfVar)
+ pass
+
def executeAnotherPieceOfCode(self,code):
"""Called for initialization of container lodging self."""
try:
self.context={}
self.context["my_container"] = self.my_container
+ def defineNewCustomVar(self,varName,valueOfVar):
+ self.context[varName] = cPickle.loads(valueOfVar)
+ pass
+
def executeAnotherPieceOfCode(self,code):
"""Called for initialization of container lodging self."""
try: