Skip to content

Commit

Permalink
remove RedirectOutput + _Inherit(GraphObserver) hack
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Coder committed Oct 10, 2023
1 parent 6e337dc commit 0876cdd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ogdf_python/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@
cppyy.cppdef("#define NDEBUG")
cppyy.include("cassert")

# inheriting from GraphObserver for the first time causes some weird logging
# silence that
import tempfile

cppyy.gbl.gSystem.RedirectOutput(tempfile.mktemp(), "w")


class _Inherit(cppyy.gbl.ogdf.GraphObserver):
pass


cppyy.gbl.gSystem.RedirectOutput(cppyy.ll.cast['char*'](0), "a")

# Load re-exports
from cppyy import include as cppinclude, cppdef, cppexec, nullptr
from cppyy.gbl import ogdf
Expand Down

0 comments on commit 0876cdd

Please sign in to comment.