die "JTAGPATH not set in environment. Points to JTAG tools (e.g. ui.pl).\n" unless (defined $ENV{'JTAGPATH'});
unless (defined $ENV{'JTAGCONFIGPATH'}) {
- printf "JTAGCONFIGPATH not set in environment. Points to JTAG config files (e.g. chains.ini). Using default.\n" if $verbose;
+ printf "JTAGCONFIGPATH not set in environment. Points to JTAG config files (e.g. chains.ini). Using default $defaultIniPath\n" if $verbose;
$ENV{'JTAGCONFIGPATH'} = $defaultIniPath;
- mkdir($defaultIniPath) unless (-e $defaultIniPath);
}
unless (defined $ENV{'XMLPATH'}) {
- printf "XMLPATH not set in environment. Points to XML file directory. Using default.\n" if $verbose;
+ printf "XMLPATH not set in environment. Points to XML file directory. Using default $defaultXmlPath\n" if $verbose;
$ENV{'XMLPATH'} = $defaultXmlPath;
}
+
+$defaultIniPath = $ENV{'JTAGCONFIGPATH'};
+$defaultXmlPath = $ENV{'XMLPATH'};
+mkdir($defaultIniPath) unless (-e $defaultIniPath);
+
+
###############################
## Read setup xml file
###############################