Skip to content

Instantly share code, notes, and snippets.

@squeaky-pl
Created November 14, 2013 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squeaky-pl/7465783 to your computer and use it in GitHub Desktop.
Save squeaky-pl/7465783 to your computer and use it in GitHub Desktop.
#assuming there is os.path import dirname, join
def Tcl_AppInit(app):
+ lib_path = join(dirname(dirname(dirname(__file__))), 'lib')
+ tcl_path = join(lib_path, 'tcl')
+ tk_path = join(lib_path, 'tk')
+ tklib.Tcl_Eval(app.interp, 'set tcl_library "{0}"'.format(tcl_path))
+ tklib.Tcl_Eval(app.interp, 'set tk_library "{0}"'.format(tk_path))
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment