scriptutils.py along with my previous post sgrepmdi.py are located at the URL below. >From the readme.txt at: http://www.semi-retired.com/python/pythonwin/ scriptutils.py This is a replacement for scriptutils.py used by PythonWin. The file is located in Pythonwin\pywin\framework within the Python21 directory. You should make a backup of the original file before copying this version into the directory. The only change to scriptutils is the addition of a chdir prior to executing a script and a restoration of the current directory once execution finishes. This will give you the same relative path when running a script inside Pythonwin as if you ran the command by double-clicking on the file in the Explorer or ran the command from the command prompt. I have tested this change and it seems to work under Windows, but it should be considered experimental. My changes are indicated in comments starting with # KEA ka _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython