some more adaptation to the new Makefiles

This commit is contained in:
nemu 2009-06-16 06:29:33 +00:00
parent 11f34a21f6
commit 6fe8f1c8cf

View File

@ -67,8 +67,8 @@ PStartupHandler::PStartupHandler()
// check if the MUSRFITPATH system variable is set
pmusrpath = getenv("MUSRFITPATH");
if (pmusrpath == 0) { // not set, will try default one
home = getenv("HOME");
sprintf(musrpath, "%s/analysis/bin", home);
home = getenv("ROOTSYS");
sprintf(musrpath, "%s/bin", home);
cout << endl << "**WARNING** MUSRFITPATH environment variable not set will try " << musrpath << endl;
} else {
strncpy(musrpath, pmusrpath, sizeof(musrpath));