Forget the post above! (How can I delete /edit it?)
Correct version:
# Exec pstoedit: pdf -> svg
try:
result = exec_command(['pstoedit', '-f', 'plot-svg', self.tmp('pdf'), self.tmp('svg')] + pstoeditOpts)
except RuntimeError as excpt:
# some other stuff here
# ...
#
raise RuntimeError(latest_message())
if not os.path.exists(self.tmp('svg')) or os.path.getsize(self.tmp('svg')) == 0:
# Check for broken pstoedit due to deprecated DELAYBIND option in ghostscript
if "DELAYBIND" in result:
result += "Ensure that a ghostscript version < 9.21 is installed on your system!\n"
add_log_message("pstoedit didn't produce output.\n%s" % (result), LOG_LEVEL_ERROR)
raise RuntimeError(latest_message())
=======================
Would you like me to implement a similar thing into the LaTeX extension?
Forget the post above! (How can I delete /edit it?)
Correct version:
# Exec pstoedit: pdf -> svg ['pstoedit' , '-f', 'plot-svg',
self. tmp('pdf' ), self.tmp('svg')] + pstoeditOpts) latest_ message( )) exists( self.tmp( 'svg')) or os.path. getsize( self.tmp( 'svg')) == 0: message( "pstoedit didn't produce output.\n%s" % (result), LOG_LEVEL_ERROR) latest_ message( ))
try:
result = exec_command(
except RuntimeError as excpt:
# some other stuff here
# ...
#
raise RuntimeError(
if not os.path.
# Check for broken pstoedit due to deprecated DELAYBIND option in ghostscript
if "DELAYBIND" in result:
result += "Ensure that a ghostscript version < 9.21 is installed on your system!\n"
add_log_
raise RuntimeError(
======= ======= ======= ==
Would you like me to implement a similar thing into the LaTeX extension?