repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated for 2.1a3
[python/dscho.git]
/
Lib
/
lib-tk
/
FixTk.py
blob
c0af29b542a4ffd25cede48ee78b326e631f8d5b
1
import
sys
,
os
,
_tkinter
2
ver
=
str
(
_tkinter
.
TCL_VERSION
)
3
for
t
in
"tcl"
,
"tk"
:
4
v
=
os
.
path
.
join
(
sys
.
prefix
,
"tcl"
,
t
+
ver
)
5
if
os
.
path
.
exists
(
os
.
path
.
join
(
v
,
"tclIndex"
)):
6
os
.
environ
[
t
.
upper
() +
"_LIBRARY"
] =
v