Re: Package unloading
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 14:31:35 GMT
Derek Fountain wrote:
Surely someone has been here before, but Google isn't helping...
I have a package containing a file call foo.tcl, which contains a whole bunch of Tcl procedures I'm working on. I start a tkcon, package require mypackage, do my thing, then go back to my editor for further work on foo.tcl. Then I run 'make install' to get the latest foo.tcl into place.
Then, I need to exit tkcon and restart it, and package require again to get the latest Tcl code into the interpreter. Is there a way I can unload foo.tcl and reload it from disk without restarting the interpreter?
Have you tried using "package forget"?
--
Bryan Oakley
http://www.tclscripting.com
.
- Follow-Ups:
- Re: Package unloading
- From: Derek Fountain
- Re: Package unloading
- References:
- Package unloading
- From: Derek Fountain
- Package unloading
- Prev by Date: Multi-thread application in FreeWrap.
- Next by Date: Re: Vista theme for Ttk?
- Previous by thread: Package unloading
- Next by thread: Re: Package unloading
- Index(es):
Relevant Pages
|