04-04-2017 05:21 PM
I have a tcl script that I wrote that depends on the designutils library from the TCL Store. When others use it, it obviously crashes when they haven't installed the designutils library. Is there a way to check if it's installed and install it, OR at least provide an instructive error telling them to install it by detecting whether it's installed or not?
04-11-2017 06:44 AM
This should work
# Install 'designutils' to access the package for tables
catch {
if {[lsearch [tclapp::list_apps] {xilinx::designutils}] == -1} {
tclapp::install designutils
}
}
04-11-2017 06:44 AM
This should work
# Install 'designutils' to access the package for tables
catch {
if {[lsearch [tclapp::list_apps] {xilinx::designutils}] == -1} {
tclapp::install designutils
}
}