I am attempting to execute a script mulitple times from the ArcMap python window (using different parameters that are hardcoded into the file).

The script runs the first time successfully, however it seems to "break" the python console, and other attempts at execfile are unsuccessful afterwards, until I restart arcgis.

Here's the a basic scenario:

1. Start ArcGIS, open python console, type:

execfile(r"C:\Users\xxx\Desktop\test.py")

2. Script executes successfully
3. Modify test.py script
4. Type execfile(r"C:\Users\xxx\Desktop\test.py")
5. Python console returns to prompt

Any ideas on what might be happening? Workarounds?