Commits

Anthony Tuininga committed 2ebcaf9

Fix calculation of TCL and TK source directories.

  • Participants
  • Parent commits 17675da

Comments (0)

Files changed (1)

File cx_Freeze/hooks.py

     if sys.platform == "win32":
         import tkinter
         import _tkinter
-        tclDir = os.environ["TCL_LIBRARY"]
-        tclSourceDir = os.path.join(tclDir, "tcl%s" % _tkinter.TCL_VERSION)
-        tkSourceDir = os.path.join(tclDir, "tk%s" % _tkinter.TK_VERSION)
+        tclSourceDir = os.environ["TCL_LIBRARY"]
+        tkSourceDir = os.environ["TK_LIBRARY"]
         finder.IncludeFiles(tclSourceDir, "tcl")
         finder.IncludeFiles(tkSourceDir, "tk")