You are not logged in.

#1 2012-10-24 02:35:58

foppe
Member
Registered: 2011-04-02
Posts: 47

[SOLVED] Location of .tcl scripts

I'm trying to get a tcl script running. The script requires htmlparse.tcl which I have found. That script requires at least one other. So I might end up with a handful of .tcl files. My question is: where in the Arch file hierarchy would I put those files so they are found magically.
I looked at some PKGFILES but found no clue there. There are some .tcl files in /usr/lib/tcl8,5 but that doesn't feel correct.

Last edited by foppe (2012-10-24 20:45:41)

Offline

#2 2012-10-24 18:56:58

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: [SOLVED] Location of .tcl scripts

Tcl loads its packages from $auto_path; see Tcl/Tk wiki for more info, but it's /usr/lib/tcl8.5 /usr/lib on Arch by default (to be more precise, it scans all subdirectories of $auto_path elements for file pkgIndex.tcl; and that's why I think that /usr/lib in $auto_path is a bad idea). You can modify it in your script, .tclshrc or TCLLIBPATH environment variable.

Offline

#3 2012-10-24 20:41:55

foppe
Member
Registered: 2011-04-02
Posts: 47

Re: [SOLVED] Location of .tcl scripts

Thanks a lot. That got me going.
I found all files I needed in packages tcllib and tls, which install in /usr/lib/tcllib (and /usr/lib/tls?). This is probably why the $auto_path is set to /usr/lib

Offline

Board footer

Powered by FluxBB