Skip to content

Commit

Permalink
Add Python initialization in rvls
Browse files Browse the repository at this point in the history
Signed-off-by: Éloïse Brosseau <[email protected]>
  • Loading branch information
eloisebrosseau committed Dec 12, 2024
1 parent 82d3efd commit f3eb752
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bin/imgtools/rvls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ FIND_PACKAGE(

TARGET_LINK_LIBRARIES(
${_target}
PUBLIC MuTwkApp
PRIVATE IOproxy
OpenEXR::OpenEXR
MovieFB
Expand All @@ -45,6 +46,7 @@ TARGET_LINK_LIBRARIES(
Boost::headers
yaml_cpp
Qt5::Core
PyTwkApp
)

IF(RV_TARGET_DARWIN)
Expand Down
13 changes: 13 additions & 0 deletions src/bin/imgtools/rvls/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <IOproxy/IOproxy.h>
#include <ImfThreading.h>
#include <MovieFB/MovieFB.h>
#include <MuTwkApp/MuInterface.h>
#include <PyTwkApp/PyInterface.h>
#include <TwkFB/TwkFBThreadPool.h>
#include <MovieProcedural/MovieProcedural.h>
#include <MovieProxy/MovieProxy.h>
Expand Down Expand Up @@ -676,6 +678,17 @@ int utf8Main(int argc, char** argv)
TwkMovie::GenericIO::addPlugin(new MovieFBIO());
TwkMovie::GenericIO::addPlugin(new MovieProceduralIO());

try
{
TwkApp::initMu(nullptr);
TwkApp::initPython();
}
catch (const std::exception &e)
{
cerr << "ERROR: during initialization: " << e.what() << '\n';
exit(-1);
}

if (showFormats)
{
TwkMovie::GenericIO::outputFormats();
Expand Down

0 comments on commit f3eb752

Please sign in to comment.