diff options
author | Guido van Rossum <guido@python.org> | 2000-04-04 23:32:21 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-04 23:32:21 (GMT) |
commit | aaa8bb42116b8ef68eeb2d112347b353c2d37863 (patch) | |
tree | d96a16902bda327eefc7473a7a1a0ef79d6621aa /Lib/lib-tk | |
parent | 4f3cc35cc1716a4982161aa0f23ad193e372cb34 (diff) | |
download | cpython-aaa8bb42116b8ef68eeb2d112347b353c2d37863.zip cpython-aaa8bb42116b8ef68eeb2d112347b353c2d37863.tar.gz cpython-aaa8bb42116b8ef68eeb2d112347b353c2d37863.tar.bz2 |
Work the Tcl version number in the path we search for.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/FixTk.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index b622006..804c75f 100644 --- a/Lib/lib-tk/FixTk.py +++ b/Lib/lib-tk/FixTk.py @@ -1,4 +1,5 @@ -import sys, os -v = os.path.join(sys.prefix, "tcl", "tcl8.3") +import sys, os, _tkinter +ver = str(_tkinter.TCL_VERSION) +v = os.path.join(sys.prefix, "tcl", "tcl"+ver) if os.path.exists(os.path.join(v, "init.tcl")): os.environ["TCL_LIBRARY"] = v |