2

Is it possible to find out all files which are sources the given .tcl files?

Vardan Hovhannisyan
  • 1,101
  • 3
  • 17
  • 40
  • 2
    I'm not clear as to what you're asking but these other questions may help: [How to find the location of TCL procedure?](http://stackoverflow.com/questions/12651549/how-to-find-the-location-of-tcl-procedure) and [Getting path of the proc in TCL which is invoked from another script](http://stackoverflow.com/questions/5193268/getting-path-of-the-proc-in-tcl-which-is-invoked-from-another-script). – Andrew Cheong May 02 '13 at 07:55
  • 1
    Do you want to know what sources the file, or what the file sources? – Donal Fellows May 02 '13 at 10:32

1 Answers1

3

Your best options are to either replace source or add a trace for source

example with trace:

proc putargs args {puts $args}
trace add execution enter source {putargs SOURCE}
source /path/to/your/file.tcl
Johannes Kuhn
  • 14,778
  • 4
  • 49
  • 73