# Full path require

**URL:** <https://www.ruby-forum.com/t/full-path-require/139086>\
**Category:** Ruby\
**Created:** [May 30, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/full-path-require/139086 "2008-05-30T17:43:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [May 30, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/full-path-require/139086/1 "2008-05-30T17:43:21Z")

</div>

Hi,

Is it possible to find out the full path of all the files that have  
been required within a currently running script?

Aidy

---

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [May 30, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/full-path-require/139086/2 "2008-05-30T18:12:23Z")

</div>

On May 30, 2008, at 9:39 AM, aidy wrote:

> Hi,
> 
> Is it possible to find out the full path of all the files that have  
> been required within a currently running script?
> 
> Aidy

oops - ignore that other post, i meant

puts $LOADED\_FEATURES.map{|path| File.expand\_path path}

sorry bout that…

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [May 30, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/full-path-require/139086/3 "2008-05-30T18:13:34Z")

</div>

On May 30, 2008, at 9:39 AM, aidy wrote:

> Hi,
> 
> Is it possible to find out the full path of all the files that have  
> been required within a currently running script?
> 
> Aidy

puts $:.map{|path| File.expand\_path path}

a @ [http://codeforpeople.com/](http://codeforpeople.com/)
