ENH: make sure working directory is set

This commit is contained in:
Bill Hoffman 2007-06-12 10:19:13 -04:00
parent e9c163762e
commit c64447c368
1 changed files with 6 additions and 2 deletions

View File

@ -80,8 +80,12 @@ public:
}
args.push_back(0); // null terminate
cmsysProcess_SetCommand(this->Process, &*args.begin());
cmsysProcess_SetWorkingDirectory(this->Process,
this->WorkingDirectory.c_str());
if(this->WorkingDirectory.size())
{
cmsysProcess_SetWorkingDirectory(this->Process,
this->WorkingDirectory.c_str());
}
cmsysProcess_SetOption(this->Process,
cmsysProcess_Option_HideWindow, 1);
if(this->TimeOut != -1)