Commit c3cbf1e2 authored by olivier stasse's avatar olivier stasse
Browse files

Fix pb with filesystem version.

Pointed out by A. Mallet.
parent 06e09ad4
......@@ -107,12 +107,20 @@ int main (int argc, char** argv)
boost::filesystem::path path (pathStr);
std::stringstream ss;
#if BOOST_FILESYSTEM_VERSION == 2
ss << "!! In file <" << path.file_string () << "> : ";
#else
ss << "!! In file <" << path.string () << "> : ";
#endif
std::string errorPrefix = ss.str ();
try
{
#if BOOST_FILESYSTEM_VERSION == 2
interpreter.runPythonFile (path.file_string ());
#else
interpreter.runPythonFile (path.string ());
#endif
}
CATCH_EXCEPTIONS ();
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment