Changeset 11423 for trunk/FACT++/src/Configuration.cc
- Timestamp:
- 07/15/11 15:26:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.cc
r11404 r11423 1236 1236 string fname = path.filename(); 1237 1237 1238 // If the filename starts with "lt-" remove it from the name 1238 1239 if (fname.substr(0, 3)=="lt-") 1239 1240 fname = fname.substr(3); 1240 1241 1241 if (pname.empty() || pname==".libs") 1242 // If no directory is contained determine the current directory 1243 if (pname.empty()) 1244 pname = boost::filesystem::current_path().string(); 1245 1246 // If the directory is relative and just ".libs" forget about it 1247 if (pname==".libs") 1242 1248 return fname; 1243 1249 1250 // Check if the directory is long enough to contain "/.libs" 1244 1251 if (pname.length()>=6) 1245 1252 { 1253 // If the directory ends with "/.libs", remove it 1246 1254 const size_t pos = pname.length()-6; 1247 1255 if (pname.substr(pos)=="/.libs")
Note:
See TracChangeset
for help on using the changeset viewer.