I'm not sure that I understand that question. Do you mean that running the script as
produces output that differs from what you get when you cd to subdir and run the script as
Also, your chances of receiving good help would improve significantly if you went those few extra yards and provided us with a small, simple, self-contained script that demonstrates the problem - something that we could just download and run. (Some of us are quite happy to go to the trouble of installing a module simply in order to take a look at a problem - but draw the line at having to write our own test script.)