Commits

Anthony Tuininga  committed 5c2cb99

Set the environment variable TCL_LIBRARY and TK_LIBRARY in order to allow for
the situation where TCL/TK is being used in a frozen application.

  • Participants
  • Parent commits 7c4f3ff

Comments (0)

Files changed (3)

File initscripts/Console.py

 sys.frozen = True
 sys.path = sys.path[:4]
 
+os.environ["TCL_LIBRARY"] = os.path.join(DIR_NAME, "tcl")
+os.environ["TK_LIBRARY"] = os.path.join(DIR_NAME, "tk")
+
 m = __import__("__main__")
 importer = zipimport.zipimporter(INITSCRIPT_ZIP_FILE_NAME)
 if INITSCRIPT_ZIP_FILE_NAME != SHARED_ZIP_FILE_NAME:

File initscripts/ConsoleSetLibPath.py

 sys.frozen = True
 sys.path = sys.path[:4]
 
+os.environ["TCL_LIBRARY"] = os.path.join(DIR_NAME, "tcl")
+os.environ["TK_LIBRARY"] = os.path.join(DIR_NAME, "tk")
+
 m = __import__("__main__")
 importer = zipimport.zipimporter(INITSCRIPT_ZIP_FILE_NAME)
 code = importer.get_code(m.__name__)

File initscripts/SharedLib.py

     sys.frozen = True
     sys.path = sys.path[:4]
 
+os.environ["TCL_LIBRARY"] = os.path.join(DIR_NAME, "tcl")
+os.environ["TK_LIBRARY"] = os.path.join(DIR_NAME, "tk")
+