]> SALOME platform Git repositories - tools/sat.git/blob - data/env_scripts/tcl.py
Salome HOME
Rename table to board for jobs publishing
[tools/sat.git] / data / env_scripts / tcl.py
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3
4 import os.path
5
6 def set_env(env, prereq_dir, version):
7     env.set('TCL_ROOT_DIR', prereq_dir) # update for cmake
8     env.set('TCLHOME', prereq_dir)
9
10     root = env.get('TCLHOME')
11     env.prepend('PATH', os.path.join(root, 'bin'))
12     env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib'))
13     env.prepend('INCLUDE', os.path.join(root, 'include'))
14     
15     l = []
16     l.append(os.path.join(root, 'lib'))
17     l.append(os.path.join(root, 'lib', 'tcl'))
18     #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm
19     #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows.
20     env.prepend('TCLLIBPATH', l, sep=" ")
21     env.set('TCL_SHORT_VERSION', version[:version.rfind('.')])
22
23 def set_nativ_env(env):
24     env.set('TCL_ROOT_DIR', '/usr') # update for cmake
25     env.set('TCLHOME', '/usr')