-#!/usr/bin/env python -tt
-# -*- coding: iso-8859-1 -*-
-
# file fig2pstex.py
# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.
# Generate the EPS file
# Generate the PSTEX_T file
-if os.system('fig2dev -Lpstex %s %s.eps' % (input, outbase)) != 0 or \
- os.system('fig2dev -Lpstex_t -p%s %s %s' % (outbase, input, output)) != 0:
- print 'fig2dev fails'
+if os.system(f'fig2dev -Lpstex {input} {outbase}.eps') != 0 or \
+ os.system(f'fig2dev -Lpstex_t -p{outbase} {input} {output}') != 0:
+ print ('fig2dev fails')
sys.exit(1)