mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 03:10:33 +05:00
Improve variables dump.
This commit is contained in:
parent
feb865d381
commit
1978ffea14
@ -63,6 +63,7 @@
|
|||||||
#define COMMA ','
|
#define COMMA ','
|
||||||
#define O_BRACKET '('
|
#define O_BRACKET '('
|
||||||
#define C_BRACKET ')'
|
#define C_BRACKET ')'
|
||||||
|
#define PY_NULL "None"
|
||||||
|
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
static int MYDEBUG = 0;
|
static int MYDEBUG = 0;
|
||||||
@ -844,14 +845,15 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
|
|||||||
aVar = theCommand.SubString(aStartPos, aEndPos-1);
|
aVar = theCommand.SubString(aStartPos, aEndPos-1);
|
||||||
if(MYDEBUG)
|
if(MYDEBUG)
|
||||||
cout<<"Current variable 1: '"<< aVar <<"'"<<endl;
|
cout<<"Current variable 1: '"<< aVar <<"'"<<endl;
|
||||||
//If parameter is entry, skip it
|
|
||||||
aVar.RightAdjust();
|
aVar.RightAdjust();
|
||||||
aVar.LeftAdjust();
|
aVar.LeftAdjust();
|
||||||
|
|
||||||
if(MYDEBUG)
|
if(MYDEBUG)
|
||||||
cout<<"Current variable 2: '"<< aVar <<"'"<<endl;
|
cout<<"Current variable 2: '"<< aVar <<"'"<<endl;
|
||||||
|
|
||||||
if(theVariables.find(aVar) != theVariables.end())
|
//If parameter is entry or 'None', skip it
|
||||||
|
if(theVariables.find(aVar) != theVariables.end() || aVar == PY_NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
aReplasedVar = aVariables[iVar].myVariable;
|
aReplasedVar = aVariables[iVar].myVariable;
|
||||||
|
Loading…
Reference in New Issue
Block a user