Skip to content
Snippets Groups Projects
Commit c3cbf1e2 authored by olivier stasse's avatar olivier stasse
Browse files

Fix pb with filesystem version.

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