diff --git a/qt/launcher/src/libpython_nix.py b/qt/launcher/src/libpython_nix.py new file mode 100644 index 000000000..99a50e72a --- /dev/null +++ b/qt/launcher/src/libpython_nix.py @@ -0,0 +1,10 @@ +# Copyright: Ankitects Pty Ltd and contributors +# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html + +import os +import sysconfig + +cfg = sysconfig.get_config_var +base = cfg("installed_base") or cfg("installed_platbase") +lib = cfg("LDLIBRARY") or cfg("INSTSONAME") +print(os.path.join(base, "lib", lib)) diff --git a/qt/launcher/src/libpython_win.py b/qt/launcher/src/libpython_win.py new file mode 100644 index 000000000..97a2d6131 --- /dev/null +++ b/qt/launcher/src/libpython_win.py @@ -0,0 +1,10 @@ +# Copyright: Ankitects Pty Ltd and contributors +# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html + +import os +import sysconfig + +cfg = sysconfig.get_config_var +base = cfg("installed_base") or cfg("installed_platbase") +lib = "python" + cfg("py_version_nodot") + ".dll" +print(os.path.join(base, lib))