aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/graphics/inkscape/fix-python-paths.patch
blob: 9428ade886305fb5247f613b7536819751d4d72d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -77,10 +77,10 @@ const std::map<std::string, Script::inte
         { "python",  {"python-interpreter",  {"pythonw"           }}},
 #elif defined __APPLE__
         { "perl",    {"perl-interpreter",    {"perl"              }}},
-        { "python",  {"python-interpreter",  {"python3"           }}},
+        { "python",  {"python-interpreter",  {"@python3@"         }}},
 #else
         { "perl",    {"perl-interpreter",    {"perl"              }}},
-        { "python",  {"python-interpreter",  {"python3", "python" }}},
+        { "python",  {"python-interpreter",  {"@python3@"         }}},
 #endif
         { "python2", {"python2-interpreter", {"python2", "python" }}},
         { "ruby",    {"ruby-interpreter",    {"ruby"    }}},