infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
How to import open source Tcl packages into Cloverleaf
System
Originally posted by Mike Keys
I've grabbed a Tcl package from sourceforge and I want this to be available to Cloverleaf. I placed the package in $HCIROOT/tcl/lib/tcllib-1.16
We are on 6.1.2.
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
Mike:
Tcl searches the auto_path global list and one level deeper for packages. Do something like:
tcl>foreach p $auto_path {echo $p}
C:/healthvision/cis5.8/integrator/tcl/lib/cloverleaf
C:/healthvision/cis5.8/integrator/tcl/lib/tfc
C:/healthvision/cis5.8/integrator/cbtest/tclprocs
C:/healthvision/cis5.8/integrator/cbtest/tclprocs
C:/healthvision/cis5.8/integrator/tclprocs
C:healthvisioncis5.8integratortcllibtcl8.4
C:/healthvision/cis5.8/integrator/tcl/lib
C:/healthvision/cis5.8/integrator/lib
C:healthvisioncis5.8integratortcllibtclx8.4
C:/healthvision/cis5.8/integrator/tcl/lib/tcllib1.11.1
And you will see your default auto_path. So,if you package index is under tcllib-1.16 you could put the directory under $HCIROOT/tcl/lib and it will work. That is where I have my TclLib package
A trick you can use. If you want your own packages and not available to others you could put the TclLib directory some other place like $HOME/mike then before calling any of the packages append to auto_path like:
lappend ::auto_path /home/mike (remember auto_path is a global)
System
Originally posted by Mike Keys
Charlie,
Thanks. I grabbed the latest version of pdf4tcl and when running a message against it found that it requires Tcl version 10.0. I had to go back a version that still supported Tcl 8.4/8.5 and the package works fine.
It works fine living in the directory under $HCIROOT/tcl/lib/tcllib-1.16
Mike
david_barr
TCL 10.0 doesn't exist yet. The latest (alpha) version of TCL is 8.7.
I think you should put new packages under $HCIROOT/tcl/lib. $HCIROOT/tcl/lib/tcllib-1.16 is only intended to keep Tcllib packages (
https://wiki.tcl.tk/1246)
. PDF4TCL is not a Tcllib package.
System
Originally posted by Mike Keys
David,
o.k. thanks. Done and still works fine.
Mike