Changeset 11573 for trunk/FACT++/src/Configuration.cc
- Timestamp:
- 07/24/11 20:21:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.cc
r11483 r11573 1065 1065 1066 1066 const boost::filesystem::path path(GetName()); 1067 const string globalfile = path.parent_path().string()+"/fact++.rc";1067 const string globalfile = (path.parent_path()/boost::filesystem::path("fact++.rc")).string(); 1068 1068 1069 1069 cerr << "Reading global options from '" << globalfile << "'." << endl; … … 1303 1303 fname = fname.substr(3); 1304 1304 1305 string pwd; 1305 1306 // If no directory is contained determine the current directory 1306 1307 if (pname.empty()) … … 1310 1311 if (pname==".libs") 1311 1312 return fname; 1313 1312 1314 1313 1315 // Check if the directory is long enough to contain "/.libs" … … 1319 1321 pname = pname.substr(0, pos); 1320 1322 } 1323 1324 // If the path is the local path do not return the path-name 1325 if (pname==boost::filesystem::current_path().string()) 1326 return fname; 1321 1327 1322 1328 return pname+'/'+fname;
Note:
See TracChangeset
for help on using the changeset viewer.