# Maya Scripts Path

**URL:** https://forum.highend3d.com/t/maya-scripts-path/3341
**Category:** Maya
**Tags:** mel
**Created:** [January 30, 2006, 5:42pm UTC](https://forum.highend3d.com/t/maya-scripts-path/3341 "2006-01-30T17:42:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sheriffcicada](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/22d042/32.png) [@sheriffcicada](https://forum.highend3d.com/u/sheriffcicada)
#### Post date: [January 30, 2006, 5:42pm UTC](https://forum.highend3d.com/t/maya-scripts-path/3341/1 "2006-01-30T17:42:16Z")

</div>

hey-  
anyone know how to source all scripts in the maya scripts dir, even in subdirectories? I know I can add each to the Maya.env, but I was hoping for a more robust solution.

thanks

scott

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [January 30, 2006, 5:48pm UTC](https://forum.highend3d.com/t/maya-scripts-path/3341/2 "2006-01-30T17:48:08Z")

</div>

Hi

yes its possible

you can find a script inside highend itself

[http://www.highend3d.com/maya/downloads/me.../misc/3750.html](http://www.highend3d.com/maya/downloads/me.../misc/3750.html)

enjoy

regds

o.S.k

---

<div class="post-metadata">

### Author: ![sheriffcicada](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/22d042/32.png) [@sheriffcicada](https://forum.highend3d.com/u/sheriffcicada)
#### Post date: [January 30, 2006, 7:20pm UTC](https://forum.highend3d.com/t/maya-scripts-path/3341/3 "2006-01-30T19:20:40Z")

</div>

thanks-

I thought that the maya.env sourced all of the global procs inside of each of the dir's specified. I can't seem to get consistant results. Some of the scripts I write work on startup and other just don't. Does each mel file have to have only one global proc? Thanks again.

Scott

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [January 30, 2006, 7:33pm UTC](https://forum.highend3d.com/t/maya-scripts-path/3341/4 "2006-01-30T19:33:28Z")

</div>

It does not, they get sourced just when its called.
