in reply to Variable path
Several possibilities:
- Look in a series of locations for a file. The user's home directory, a system configuration directory, the application directory...
- Require an environment variable to contain the correct path.
- Write the installation location to your program when you're installing it.