OK. I found out what's wrong, the script had to be run from the object directory. Thanks Michael Meyer