diff --git a/mrv2/lib/mrvPy/Cmds.cpp b/mrv2/lib/mrvPy/Cmds.cpp index b7db86969..bbe1413a8 100644 --- a/mrv2/lib/mrvPy/Cmds.cpp +++ b/mrv2/lib/mrvPy/Cmds.cpp @@ -348,6 +348,16 @@ namespace mrv2 } #endif + /** + * \brief Returns the current session file. + * + * @param file The path to the session file, like: test.mrv2s + */ + std::string currentSession() + { + return current_session(); + } + /** * \brief Open a session file. * @@ -509,7 +519,11 @@ Used to run main commands and get and set the display, image, compare, LUT optio #endif cmds.def( - "oepnSession", &mrv2::cmd::openSession, _("Open a session file."), + "currentSession", &mrv2::cmd::currentSession, + _("Returns current session file.")); + + cmds.def( + "openSession", &mrv2::cmd::openSession, _("Open a session file."), py::arg("file")); cmds.def("saveSession", &mrv2::cmd::saveSession, _("Save a session file.")); diff --git a/tlRender b/tlRender index b6499936c..870f18b1b 160000 --- a/tlRender +++ b/tlRender @@ -1 +1 @@ -Subproject commit b6499936c64041b22aa2011de187b529b7e0f63a +Subproject commit 870f18b1b74b12c4048e1d9921d36ce1f405e731