From c3cbf1e279bba02951a54aeb85f61dfe64723a34 Mon Sep 17 00:00:00 2001 From: Olivier Stasse <olivier.stasse@gmail.com> Date: Tue, 5 Mar 2013 21:46:05 +0100 Subject: [PATCH] Fix pb with filesystem version. Pointed out by A. Mallet. --- src/dg-python.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dg-python.cc b/src/dg-python.cc index 9bf0537..08235d3 100644 --- a/src/dg-python.cc +++ b/src/dg-python.cc @@ -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; -- GitLab