Posted to tcl by aspect at Wed Nov 18 02:44:54 GMT 2015view raw

  1. file mkdir modules
  2. set fd [open modules/lala-1.tm w]
  3. puts $fd {puts "Loaded lala version 1"}
  4. close $fd
  5.  
  6. safe::interpCreate int -accessPath [list $tcl_library [pwd]/modules]
  7. int eval {package require lala}
  8.  
  9. # can't find package lala
  10.