add helper scripts

This commit is contained in:
llama 2025-11-01 22:12:37 +08:00
parent 92339ce290
commit d9f94badf6
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3
2 changed files with 20 additions and 0 deletions

View file

@ -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))

View file

@ -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))