I know this probably has nothing to do with the actual code itself, but how do I find out where the directory the user compiled the program in is? I am using kdevelop as my IDE and I am running Mandriva 10.1. Supertux did a nice job of this but I can't figure how they did it.