Hacker News new | ask | show | jobs
by byoung2 5787 days ago
because build scripts have hard-coded, absolute paths We usually define these paths as constants in a config file (e.g. LIB_DIR, STATIC_DIR, etc.) and then use the constants in the rest of the code so that if you need to change it in your dev environment it's easy. It also makes it easy if we wanted to move those directories completely (e.g. to a different mount).