cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
2,307 Views
Registered: ‎07-29-2009

TCL store design utils install

Jump to solution

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?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
3,924 Views
Registered: ‎03-03-2009

This should work

 

  # Install 'designutils' to access the package for tables
  catch {
         if {[lsearch [tclapp::list_apps] {xilinx::designutils}] == -1} {
               tclapp::install designutils
         }
  }

 

View solution in original post

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
3,925 Views
Registered: ‎03-03-2009

This should work

 

  # Install 'designutils' to access the package for tables
  catch {
         if {[lsearch [tclapp::list_apps] {xilinx::designutils}] == -1} {
               tclapp::install designutils
         }
  }

 

View solution in original post

0 Kudos