Ignore:
Timestamp:
07/24/11 20:21:49 (13 years ago)
Author:
tbretz
Message:
Do not return the full path in UnLibToolize if it is the local path; fixed this case for fact++.rc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r11483 r11573  
    10651065
    10661066    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();
    10681068
    10691069    cerr << "Reading global  options from '" << globalfile << "'." << endl;
     
    13031303        fname = fname.substr(3);
    13041304
     1305    string pwd;
    13051306    // If no directory is contained determine the current directory
    13061307    if (pname.empty())
     
    13101311    if (pname==".libs")
    13111312        return fname;
     1313
    13121314
    13131315    // Check if the directory is long enough to contain "/.libs"
     
    13191321            pname = pname.substr(0, pos);
    13201322    }
     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;
    13211327
    13221328    return pname+'/'+fname;
Note: See TracChangeset for help on using the changeset viewer.