-
Notifications
You must be signed in to change notification settings - Fork 5
/
sourceme.csh
36 lines (30 loc) · 928 Bytes
/
sourceme.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Check for simulator setups
if ( `where use` == "" ) then
echo "You have to set the simulator paths in the sourceme script"
else
# This is AaltoUniversity specific way to set paths
# Set paths for Mentor programs (Eldo, Questasim)
use advms_17.1
# Set paths for Cadence programs (Spectre)
use icadv123
use ngspice
use icarus
endif
#Set module thesdk to PYTHONPATH
set called=($_)
set scriptfp=`readlink -f $called[2]`
set scriptdir=`dirname $scriptfp`
if ( ! $?PYTHONPATH ) then
setenv PYTHONPATH $scriptdir/Entities/thesdk
else
setenv PYTHONPATH $scriptdir/Entities/thesdk:${PYTHONPATH}
endif
if ( -d ${HOME}/.local/bin && "${PATH}" !~ *"${HOME}/.local/bin"* ) then
echo "Adding \${HOME}/.local/bin to path for user specific python installations"
setenv PATH ${HOME}/.local/bin:${PATH}
else
echo "${HOME}/.local/bin already in path"
endif
unset called
unset scriptfp
unset scriptdir