Changeset 8727 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 09/03/07 10:37:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEnv.cc
r8716 r8727 41 41 // some of the resources. 42 42 // 43 // If given paths are not absolute there base is always th elocation of 44 // the including file. 45 // 43 46 ////////////////////////////////////////////////////////////////////////////// 44 47 #include "MEnv.h" … … 111 114 return 0; 112 115 116 const char *dir = gSystem->DirName(GetRcName()); 117 113 118 // Tokenize the array into single files divided by a whitespace 114 119 TObjArray *arr = incl.Tokenize(" "); … … 123 128 { 124 129 // Get file name to include 125 const char *fenv = (*arr)[i]->GetName(); 130 TString fenv = (*arr)[i]->GetName(); 131 132 // If the is not anabsolute path we prepend the dir-name 133 // of the including file. This allows that includes 134 // do not necessarily need absolute paths and paths are always 135 // relative to the location of th eincluding file. 136 if (!gSystem->IsAbsoluteFileName(fenv)) 137 { 138 fenv.Prepend("/"); 139 fenv.Prepend(dir); 140 } 126 141 127 142 // Read included file and check if its valid
Note:
See TracChangeset
for help on using the changeset viewer.