From 2c7c0a223f07036d9568db5888780986be330033 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 9 Dec 2022 13:07:44 +0100 Subject: [PATCH] sat #33094: add TCL_LIBRARY and TK_LIBRARY environment variables --- products/env_scripts/tcl.py | 1 + products/env_scripts/tcltk.py | 2 ++ products/env_scripts/tk.py | 1 + 3 files changed, 4 insertions(+) diff --git a/products/env_scripts/tcl.py b/products/env_scripts/tcl.py index cb41c24..f4bbe16 100644 --- a/products/env_scripts/tcl.py +++ b/products/env_scripts/tcl.py @@ -18,6 +18,7 @@ def set_env(env, prereq_dir, version): #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. env.prepend('TCLLIBPATH', l, sep=" ") + env.set('TCL_LIBRARY',os.path.join(prereq_dir, 'lib', 'tcl' + env.get('TCL_SHORT_VERSION'))) if not platform.system() == "Windows" : env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) diff --git a/products/env_scripts/tcltk.py b/products/env_scripts/tcltk.py index bab1278..b86c320 100644 --- a/products/env_scripts/tcltk.py +++ b/products/env_scripts/tcltk.py @@ -24,6 +24,8 @@ def set_env(env, prereq_dir, version): l.append(os.path.join(prereq_dir, 'lib')) l.append(os.path.join(prereq_dir, 'lib', 'tk' + env.get('TCL_SHORT_VERSION'))) env.prepend('TKLIBPATH', l, sep=" ") + env.set('TCL_LIBRARY',os.path.join(prereq_dir, 'lib', 'tcl' + env.get('TCL_SHORT_VERSION'))) + env.set('TK_LIBRARY', os.path.join(prereq_dir, 'lib', 'tk' + env.get('TCL_SHORT_VERSION'))) if not platform.system() == "Windows" : env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) diff --git a/products/env_scripts/tk.py b/products/env_scripts/tk.py index 91571d7..d0d36ac 100755 --- a/products/env_scripts/tk.py +++ b/products/env_scripts/tk.py @@ -20,6 +20,7 @@ def set_env(env, prereq_dir, version): #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows. env.prepend('TKLIBPATH', l, sep=" ") + env.set('TK_LIBRARY',os.path.join(prereq_dir, 'lib', 'tk' + env.get('TCL_SHORT_VERSION'))) if not platform.system() == "Windows" : env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) -- 2.39.2