Commit c64447c3 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make sure working directory is set

parent e9c16376
...@@ -80,8 +80,12 @@ public: ...@@ -80,8 +80,12 @@ public:
} }
args.push_back(0); // null terminate args.push_back(0); // null terminate
cmsysProcess_SetCommand(this->Process, &*args.begin()); cmsysProcess_SetCommand(this->Process, &*args.begin());
cmsysProcess_SetWorkingDirectory(this->Process, if(this->WorkingDirectory.size())
this->WorkingDirectory.c_str()); {
cmsysProcess_SetWorkingDirectory(this->Process,
this->WorkingDirectory.c_str());
}
cmsysProcess_SetOption(this->Process, cmsysProcess_SetOption(this->Process,
cmsysProcess_Option_HideWindow, 1); cmsysProcess_Option_HideWindow, 1);
if(this->TimeOut != -1) if(this->TimeOut != -1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment