]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.cpp
Run codespell on tex2lyx/, client/, convert/ and graphics/
[lyx.git] / src / graphics / GraphicsConverter.cpp
index 598e108b73a153f1882eb8c618c747936b6f4936..6c3e48d93ad34a2cba1024ccbd829118f831b2d3 100644 (file)
@@ -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))