mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
add helper scripts
This commit is contained in:
parent
92339ce290
commit
d9f94badf6
2 changed files with 20 additions and 0 deletions
10
qt/launcher/src/libpython_nix.py
Normal file
10
qt/launcher/src/libpython_nix.py
Normal 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))
|
||||||
10
qt/launcher/src/libpython_win.py
Normal file
10
qt/launcher/src/libpython_win.py
Normal 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))
|
||||||
Loading…
Reference in a new issue