[Xotcl] "Cannot locate library"

Uwe Zdun uwe.zdun at wu-wien.ac.at
Tue May 13 12:22:35 CEST 2003


On Tuesday 13 May 2003 11:49, Gustaf Neumann wrote:
>
> > and use the local directory
> > when you are in it so that you don't necessarily have to install.
>
> as stated in my last mail. extending the autopath or tcllibpath
> should solve this.
>

and that (extending the autopath) is exactly what the method
check_library_path essentially does. I think we can get rid
of the part:

	    foreach d $::auto_path {
		set xl xotcl$::xotcl::version
		foreach x [list [file join $d $xl] [file join $d .. $xl]] {
		    #puts stderr "check $x"
		    if {[file isdirectory $x]} {
			set ::xotcl::lib $x
			set success 1
			break
		    }
		}
		if {[info exists success]} {break}
	    }

if we don't want the xotcl::lib variable ... the rest (except the ENV part) is 
needed somewhere, i think. I guess, if we code these things into the pkgindex 
files we would need a different version for the Win and unix installation.


> there is code in the xotcl package "package" to determine 
> the name of the library directory. an application needing this
> info can use this approach...

I'm not sure, which method do you mean in package.xotcl??

--uwe

-- 
Uwe Zdun
Department of Information Systems, Vienna University of Economics
Phone: +43 1 313 36 4796, Fax: +43 1 313 36 746
zdun@{xotcl,computer,acm}.org, uwe.zdun at wu-wien.ac.at





More information about the Xotcl mailing list