@@ -4373,16 +4373,19 @@ void stressGraphics(Int_t verbose = 0, Bool_t generate = kFALSE, Bool_t keep_fil
43734373 // only in batch web mode use
43744374 gWebMode = gROOT ->IsWebDisplay ();
43754375
4376- // Check if $ROOTSYS/tutorials/hsimple.root exists
4377- gHsimple = TFile::Open (" $(ROOTSYS)/tutorials/hsimple.root" );
4376+ // Check if hsimple.root exists
4377+
4378+ TString dir = gROOT ->GetTutorialDir ();
4379+
4380+ gHsimple = TFile::Open (dir + " /hsimple.root" );
43784381 if (!gHsimple ) {
43794382 gHsimple = TFile::Open (" hsimple.root" );
43804383 if (!gHsimple ) {
4381- printf (" Create $(ROOTSYS)/tutorials/ hsimple.root\n " );
4382- gROOT ->Macro (" $(ROOTSYS)/tutorials /hsimple.C" );
4383- gHsimple = TFile::Open (" $(ROOTSYS)/tutorials/ hsimple.root" );
4384+ printf (" Create hsimple.root\n " );
4385+ gROOT ->Macro (dir + " /hsimple.C" );
4386+ gHsimple = TFile::Open (" hsimple.root" );
43844387 if (!gHsimple ) {
4385- printf (" Could not create $(ROOTSYS)/tutorials/ hsimple.root\n " );
4388+ printf (" Could not create hsimple.root\n " );
43864389 return ;
43874390 }
43884391 }
@@ -4391,10 +4394,10 @@ void stressGraphics(Int_t verbose = 0, Bool_t generate = kFALSE, Bool_t keep_fil
43914394 // Check if cernstaff.root exists
43924395 gCernstaff = TFile::Open (" cernstaff.root" );
43934396 if (!gCernstaff ) {
4394- gCernstaff = TFile::Open (" $(ROOTSYS)/tutorials /io/tree/cernstaff.root" );
4397+ gCernstaff = TFile::Open (dir + " /io/tree/cernstaff.root" );
43954398 if (!gCernstaff ) {
43964399 printf (" Create ./cernstaff.root\n " );
4397- gROOT ->Macro (" $(ROOTSYS)/tutorials /io/tree/tree500_cernbuild.C(0,0)" );
4400+ gROOT ->Macro (dir + " /io/tree/tree500_cernbuild.C(0,0)" );
43984401 gCernstaff = TFile::Open (" cernstaff.root" );
43994402 if (!gCernstaff ) {
44004403 printf (" Could not create ./cernstaff.root\n " );
0 commit comments