diff --git a/bin/pdflatexex_mod.py b/bin/pdflatexex_mod.py index bc37cf2..afc9e45 100755 --- a/bin/pdflatexex_mod.py +++ b/bin/pdflatexex_mod.py @@ -107,6 +107,8 @@ def run(texfile, pdflatexopts=[], mode=MODE_EX, pdfbasename=None, pdflatex=None, texfile_dir = None # None, by default (meaning CWD) texfile_full = os.path.realpath(os.path.abspath(texfile)) + if sys.platform.startswith('win'): + texfile_full = texfile_full.replace('\\', '/') workdir = tempfile.mkdtemp(); diff --git a/guicompiler/compilerwidget.py b/guicompiler/compilerwidget.py index 2e754ff..4b5a877 100644 --- a/guicompiler/compilerwidget.py +++ b/guicompiler/compilerwidget.py @@ -161,7 +161,7 @@ def show_pdf(self, mode): fnpdfabs = os.path.realpath(os.path.abspath(fnpdf)) if not os.path.exists(fnpdfabs): - QMessageBox.critical(self, "Error", u"The file %s does not exist yet. compile it first!"%(fnpdf)) + QMessageBox.critical(self, "Error", u"The file %s does not exist yet. compile it first!"%(fnpdfabs)) return url = 'file:' + urllib.pathname2url(fnpdfabs)