Backed out changeset: ba8115b47676

This commit is contained in:
Don Honerbrink 2015-03-23 22:47:20 -05:00
parent 94526ea8a9
commit 410ee1c8e4

View File

@ -26,7 +26,6 @@
#else
#include <sys/types.h>
#include <unistd.h>
#include <wordexp.h>
#endif
std::string Configuration::AbsolutePath;
@ -307,18 +306,6 @@ std::string Configuration::ConvertToAbsolutePath(std::string prefix, std::string
char first = ' ';
char second = ' ';
// expand path variables
#ifdef WIN32
// Do something equivalent to the 'nix code using Windows' ExpandEnvironmentStrings() here
#else
wordexp_t expandedPath;
wordexp(path.c_str(), &expandedPath, 0);
path = "\"" + path + "\"";
path.assign(expandedPath.we_wordv[0]);
path.erase(std::remove(path.begin(), path.end(), '"'), path.end());
wordfree(&expandedPath);
#endif
if(path.length() >= 0)
{
first = path.c_str()[0];