- Timestamp:
- Jun 27, 2011, 8:42:29 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- d007920
- Parents:
- b791e9d
- File:
-
- 1 edited
-
tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl
rb791e9d r9417624 289 289 290 290 proc ::tolsh::setup_pkg { pkg } { 291 #puts ":tolsh::setup_pkg $pkg [namespace exist ::starkit] " 291 292 if {[lsearch [package names] $pkg]==-1} { 292 293 if {[namespace exist ::starkit]} { … … 296 297 if {[llength $pkg_dirs]} { 297 298 lappend ::auto_path [file normalize $libdir] 299 } elseif { $::tcl_platform(platform) eq "unix" && 300 $::tcl_platform(machine) eq "x86_64" } { 301 if { [ lsearch $::auto_path "/usr/lib" ] == -1 } { 302 lappend ::auto_path "/usr/lib" 303 } 298 304 } else { 299 set tclsh [auto_execok tclsh] 300 if {![catch { 301 exec echo puts {$::auto_path} | $tclsh 302 } ext_auto_path]} { 303 foreach p $ext_auto_path { 304 if {[lsearch $::auto_path $p]==-1} { 305 lappend ::auto_path $p 305 set tclsh [auto_execok tclsh] 306 if {![catch { 307 exec echo puts {$::auto_path} | $tclsh 308 } ext_auto_path]} { 309 foreach p $ext_auto_path { 310 if {[lsearch $::auto_path $p]==-1} { 311 lappend ::auto_path $p 312 } 306 313 } 307 314 } 308 }309 315 } 310 316 tclPkgUnknown ${pkg}+1 "" … … 565 571 566 572 proc logtmp { msg } { 567 return573 #return 568 574 set user [ exec whoami ] 569 575 set fd [ open "/tmp/tolsh.${user}.log" a ]
Note: See TracChangeset
for help on using the changeset viewer.
