chdir?
In reply to Re: How could you make a script think it's running in its own directory? by almut in thread How could you make a script think it's running in its own directory? by why_bird