From: Intransition Date: 2009-12-01T06:31:24+09:00 Subject: Re: Detect the path used to require a file? On Nov 30, 4:28 pm, Brian Hartin wrote: > Hi all, > > I'm having a problem in which a file is being required twice, using > slightly different paths, and I want to track down where this is > happening.  Is there a way I can print out the path used to require a > given file? Create a load monitor, eg. alias old_require require def require(path) puts path, caller, "---" old_require(path) end