]> granicus.if.org Git - python/commitdiff
Work the Tcl version number in the path we search for.
authorGuido van Rossum <guido@python.org>
Tue, 4 Apr 2000 23:32:21 +0000 (23:32 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Apr 2000 23:32:21 +0000 (23:32 +0000)
Lib/lib-tk/FixTk.py

index b6220060df313571ef87cfc39ad36dc5f3a55cb2..804c75f32d7f95bba219fb789556b03fadaddb7b 100644 (file)
@@ -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