]> git.lyx.org Git - lyx.git/commitdiff
Convert $${python} placeholder for graphic conversions
authorJosé Matos <jamatos@lyx.org>
Sun, 14 Apr 2024 20:30:02 +0000 (21:30 +0100)
committerJosé Matos <jamatos@lyx.org>
Sun, 14 Apr 2024 20:30:02 +0000 (21:30 +0100)
src/graphics/GraphicsConverter.cpp

index 669f08d2ff321c1781c808faccb8c4415732083c..34d37a406604c0840d14a12d31f54362e2565e07 100644 (file)
@@ -362,6 +362,7 @@ static void build_script(string const & doc_fname,
        string const token_base  = "$$b";
        string const token_to    = "$$o";
        string const token_todir = "$$d";
+       string const token_python = "$${python}";
 
        EdgePath::const_iterator it  = edgepath.begin();
        EdgePath::const_iterator end = edgepath.end();
@@ -405,6 +406,7 @@ static void build_script(string const & doc_fname,
                command = subst(command, token_base,  "' + '\"' + infile_base + '\"' + '");
                command = subst(command, token_to,    "' + '\"' + outfile + '\"' + '");
                command = subst(command, token_todir, "' + '\"' + outdir + '\"' + '");
+               command = subst(command, token_python, os::python());
 
                build_conversion_command(command, script);
        }