From: Nabil Ghodbane Date: Fri, 9 Dec 2022 12:07:44 +0000 (+0100) Subject: sat #33094: add TCL_LIBRARY and TK_LIBRARY environment variables X-Git-Tag: V9_11_0~153 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c7c0a223f07036d9568db5888780986be330033;p=tools%2Fsat_salome.git sat #33094: add TCL_LIBRARY and TK_LIBRARY environment variables --- 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'))