Revision: 316
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=316&view=rev
Author: glslang
Date: 2007-09-27 12:15:01 -0700 (Thu, 27 Sep 2007)
Log Message:
-----------
+script engine eval
Modified Paths:
--------------
trunk/app/HDRFlow/ScriptEngine.cpp
Modified: trunk/app/HDRFlow/ScriptEngine.cpp
===================================================================
--- trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-24 21:36:11 UTC (rev 315)
+++ trunk/app/HDRFlow/ScriptEngine.cpp 2007-09-27 19:15:01 UTC (rev 316)
@@ -101,11 +101,10 @@
for( const_iterator I = split_vec.begin( ); I != split_vec.end( ); ++I )
result_ += "# " + *I + "\n";
- std::pair<pl::string, bool> result = in_python( str, Py_eval_input );
- if( !result.second )
- result = in_python( str, Py_file_input );
-
- result_ += result.first;
+ std::pair<pl::string, bool> result = in_python( str, Py_file_input );
+ if( result.second)
+ result_ += result.first;
+
return result.second;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|