/
Ao
/
MaxReport
Обзор
Документация
Войти
/
Ao
/
MaxReport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
pgsql/pgAdmin 4/python/Lib/site-packages/PIL/_tkinter_finder.py
20 строк
538 B
AoAnima
first_commit
13 июл 2026, 17:47
13 июл 2026, 17:47
f1a670a
Код
Авторство
О чём код?
"""Find compiled module linking to Tcl / Tk libraries""" from __future__ import annotations import sys import tkinter tk = getattr(tkinter, "_tkinter") try: if hasattr(sys, "pypy_find_executable"): TKINTER_LIB = tk.tklib_cffi.__file__ else: TKINTER_LIB = tk.__file__ except AttributeError: # _tkinter may be compiled directly into Python, in which case __file__ is # not available. load_tkinter_funcs will check the binary first in any case. TKINTER_LIB = None tk_version = str(tkinter.TkVersion)