Advertisement

path to executable

Started by September 16, 2004 04:03 AM
9 comments, last by C-Junkie 20 years, 2 months ago
Another common method is to use environment variables.

Your program checks to see if MYPROGRAM_PREFIX_DIR is set, and if so uses that, otherwise it uses the hardcoded path.

then you can just 'export MY_PROGRAM_PREFIX_DIR=/home/mine/devel/myprogram/' and run normally.

This topic is closed to new replies.

Advertisement