Skip to content
Snippets Groups Projects
Commit 8f35586c authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix __FILE__ path on Windows

parent f457e47f
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@
#ifndef CLONESA_EVENT_SECOND_RUN
void clonesA_Event() {
TString dir = gSystem->UnixPathName(gSystem->DirName(__FILE__));
std::string s1(__FILE__);
TString dir = gSystem->UnixPathName(s1.substr(0, s1.find_last_of("\\/")).c_str());
gROOT->ProcessLine(TString(".L ")+dir+"/clonesA_Event.cxx+");
#define CLONESA_EVENT_SECOND_RUN yes
gROOT->ProcessLine("#include \"" __FILE__ "\"");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment