X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsConverter.cpp;h=6c3e48d93ad34a2cba1024ccbd829118f831b2d3;hb=110f8f67ac1afe9892dad5566d1c697044427cf0;hp=598e108b73a153f1882eb8c618c747936b6f4936;hpb=db58111360d68f76c5797069a7b80967447d1379;p=lyx.git diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp index 598e108b73..6c3e48d93a 100644 --- a/src/graphics/GraphicsConverter.cpp +++ b/src/graphics/GraphicsConverter.cpp @@ -287,8 +287,7 @@ static void build_script(string const & doc_fname, LYXERR(Debug::GRAPHICS, "build_script ... "); typedef Graph::EdgePath EdgePath; - script << "#!/usr/bin/env python\n" - "# -*- coding: utf-8 -*-\n" + script << "# -*- coding: utf-8 -*-\n" "import os, shutil, sys\n\n" "def unlinkNoThrow(file):\n" " ''' remove a file, do not throw if an error occurs '''\n" @@ -381,9 +380,9 @@ static void build_script(string const & doc_fname, // If two formats share the same extension we may get identical names if (outfile == infile && conv.result_file().empty()) { - TempFile tempfile(addExtension("gconvertXXXXXX", conv.To()->extension())); - tempfile.setAutoRemove(false); - outfile = tempfile.name().toFilesystemEncoding(); + TempFile tmpfile(addExtension("gconvertXXXXXX", conv.To()->extension())); + tmpfile.setAutoRemove(false); + outfile = tmpfile.name().toFilesystemEncoding(); } if (!theConverters().checkAuth(conv, doc_fname))