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"
// 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))