Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tree tutorials path #1235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions root/treeformula/string/execDrawString.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ TFile *cernbuild(Int_t get=0) {
// if the argument get =1 return the file "cernstaff.root"
// if the file does not exist, it is created
if (!gSystem->AccessPathName("cernstaff.root",kFileExists)) {
hfile = TFile::Open("cernstaff.root"); //in $ROOTSYS/tutorials/tree
hfile = TFile::Open("cernstaff.root"); //in $ROOTSYS/tutorials/io/tree
if (hfile) return hfile;
}
}
//no cernstaff.root file found. Must generate it !
//generate cernstaff.root in $ROOTSYS/tutorials/tree if we have write access
//generate cernstaff.root in $ROOTSYS/tutorials/io/tree if we have write access
if (!gSystem->AccessPathName(".",kWritePermission)) {
//otherwise generate cernstaff.root in the current directory
} else {
Expand Down Expand Up @@ -63,7 +63,7 @@ TFile *cernbuild(Int_t get=0) {
fclose(fp);
delete hfile;
if (get) {
//we come here when the script is executed outside $ROOTSYS/tutorials/tree
//we come here when the script is executed outside $ROOTSYS/tutorials/io/tree
hfile = TFile::Open(filename);
return hfile;
}
Expand Down