Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
1dbce44b91426712f5a904c8c52fbde21c7bd79c
/
.
/
Lib
/
lib-tk
/
FixTk.py
blob: c0af29b542a4ffd25cede48ee78b326e631f8d5b [
file
] [
log
] [
blame
]
import
sys
,
os
,
_tkinter
ver
=
str
(
_tkinter
.
TCL_VERSION
)
for
t
in
"tcl"
,
"tk"
:
v
=
os
.
path
.
join
(
sys
.
prefix
,
"tcl"
,
t
+
ver
)
if
os
.
path
.
exists
(
os
.
path
.
join
(
v
,
"tclIndex"
)):
os
.
environ
[
t
.
upper
()
+
"_LIBRARY"
]
=
v