Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use os.devnull instead of /dev/null for cross-platform compatiblity
  • Loading branch information
noc0lour committed Nov 26, 2019
commit ffbd841d25b27b1cfccdb48554f7d42604dfb5cc
2 changes: 1 addition & 1 deletion gnuplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ def make_subplot_data_embedded_kwargs(subplot):
# stdout output, then eventually the buffer fills up and gnuplot blocks.
# So keep it going to /dev/null, or make sure to read the test plot from
# stdout
self._printGnuplotPipe( "set output '/dev/null'\n" )
self._printGnuplotPipe( f"set output '{os.devnull}'\n" )
self._printGnuplotPipe( "set terminal dumb\n" )

if self.processOptions.get('multiplot'):
Expand Down