Skip to content

Commit

Permalink
Fixed Python's openSession (was oepnSession before).
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 9, 2023
1 parent d6ad52f commit 34bfd32
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion mrv2/lib/mrvPy/Cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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."));
Expand Down
2 changes: 1 addition & 1 deletion tlRender

0 comments on commit 34bfd32

Please sign in to comment.