# Reload a script, but not with the rehash

**URL:** https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736
**Category:** Maya
**Tags:** mel
**Created:** [April 29, 2010, 2:28pm UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736 "2010-04-29T14:28:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mary-poppins](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@mary-poppins](https://forum.highend3d.com/u/mary-poppins)
#### Post date: [April 29, 2010, 2:28pm UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736/1 "2010-04-29T14:28:14Z")

</div>

Hi,

I'm editing a script, but it seems and the mel doc says the rehash is only search new scripts on the script-paths. When I edit a script it is the appropriate folder, so the rehash doesn't refresh the content itself. How can I refresh/unload/reload only one script? Or how can I edit a script without renaming it again and again, or closing maya?

thank you

---

<div class="post-metadata">

### Author: ![thnkr](https://forum.highend3d.com/user_avatar/forum.highend3d.com/thnkr/32/115_2.png) [@thnkr](https://forum.highend3d.com/u/thnkr)
#### Post date: [April 30, 2010, 12:35am UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736/2 "2010-04-30T00:35:22Z")

</div>

Use source.

---

<div class="post-metadata">

### Author: ![mary-poppins](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@mary-poppins](https://forum.highend3d.com/u/mary-poppins)
#### Post date: [April 30, 2010, 11:28am UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736/3 "2010-04-30T11:28:33Z")

</div>

thank you a lot

---

<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: [April 30, 2010, 11:56am UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736/4 "2010-04-30T11:56:49Z")

</div>

PS source is a directive. so if you use it in some automaic code vidget then you need to eval it.

---

<div class="post-metadata">

### Author: ![mary-poppins](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/8dc957/32.png) [@mary-poppins](https://forum.highend3d.com/u/mary-poppins)
#### Post date: [April 30, 2010, 5:52pm UTC](https://forum.highend3d.com/t/reload-a-script-but-not-with-the-rehash/736/5 "2010-04-30T17:52:51Z")

</div>

thank you
