-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path*.*
50 lines (50 loc) · 1.73 KB
/
*.*
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
#!~*.*/perl
BEGIN {
if ($ENV{DKITVERIFICATION} eq "")
{
if ($ENV{HPEESOF_DIR} eq "")
{
print "\nPlease set environment variable DKITVERIFICATION\nto
point to the design kit model verification installation directory\n\n";
exit 1;
} else
{
$ENV{DKITVERIFICATION} =
"$ENV{HPEESOF_DIR}/design_kit/verification";
}
}
$myLibPath = "$ENV{DKITVERIFICATION}/perl/lib";
if ( ! -d $myLibPath)
{
if ($ENV{DKITVERIFICATION} eq
"$ENV{HPEESOF_DIR}/design_kit/verification")
{
if ( ! -d "$ENV{HPEESOF_DIR}/design_kit/verification")
{
print "\nERROR: Unable to find verification module
directory\nVerification tool not installed at default\nlocation
\$HPEESOF_DIR/design_kit/verification\n";
print "Please set environment variable DKITVERIFICATION to
point\nto the design kit model verification installation directory\n\n";
} else
{
print "\nERROR: Unable to find verification module directory
at\ndefault location \$HPEESOF_DIR/design_kit/verification/perl/lib\n";
print "Please set environment variable DKITVERIFICATION\nto
point to the installation directory\n\n";
}
} else
{
print "\nERROR : Unable to find verification module directory
\$DKITVERIFICATION/perl/lib\n\n";
print "Please set environment variable DKITVERIFICATION\nto
point to the design kit model verification installation directory\n\n";
}
exit 1;
}
# To find the standard supplied libraries in the local path
use Cwd;
$curDir = cwd;
}
use lib "$myLibPath";
use lib "$curDir";