-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cdsinit
59 lines (52 loc) · 1.59 KB
/
.cdsinit
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;; PDK specific entries do not touch --
LF150_HOME = getShellEnvVar( "LF150_HOME" )
defun( LFinitDisplayError ( t_banner t_errorMsg )
;; display a dialog box message about LF150_HOME failure.
when( t_errorMsg
warn( t_errorMsg )
hiDisplayAppDBox(
?name 'LF150_HOME_error
?dboxBanner t_banner
?dboxText t_errorMsg
?dialogType hicErrorDialog
?dialogStyle 'modal
?buttonLayout 'Close
)
)
) ;; close defun
;; getting LF150_HOME directory
if( !LF150_HOME || LF150_HOME == "" then
LFinitDisplayError(
"LF150_HOME Error"
strcat(
"Environment variable LF150_HOME not set.\n"
"This will result in an incomplete customization for LF150.\n"
)
)
else
if( !isDir( LF150_HOME ) then
LFinitDisplayError(
"LF150_HOME Error"
strcat(
"Environment variable LF150_HOME is not a directory.\n"
"This will result in an incomplete customization for LF150.\n"
)
)
else
if( !isReadable( LF150_HOME ) then
LFinitDisplayError(
"LF150_HOME Error"
strcat(
"Directory LF150_HOME is not readable.\n"
"This will result in an incomplete customization for LF150.\n"
)
)
else
loadi( strcat( LF150_HOME "/tools/setup/.cdsinit" ) )
) ;; close unless isReadable
) ;; close if isDir
) ;; close if getShellEnvVar
;;) ;; close let
;; END PDK specific entries do not touch --
envSetVal("ams.envOpts" "connectRulesList" 'string "connectLib;ConnRules_18V_full;connect connectLib;mixedsignal;connect")
editor = "gedit"