Fix linux binary installer bug

This commit is contained in:
Kovid Goyal
2010-08-20 15:27:53 -06:00
parent 71839f0a35
commit 88cd5dc1a6
48 changed files with 4084 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#------------------------------------------------------------------------------
# SharedLib.py
# Initialization script for cx_Freeze which behaves similarly to the one for
# console based applications but must handle the case where Python has already
# been initialized and another DLL of this kind has been loaded. As such it
# does not block the path unless sys.frozen is not already set.
#------------------------------------------------------------------------------
import encodings
import os
import sys
import warnings
if not hasattr(sys, "frozen"):
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")