X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.cpp;h=54c9acc1274fed39f2b01c79aafeabdaa8d6d4bd;hb=4c11e2a041d2064f44b7eb3dbf1976c35fc8881c;hp=bde453f8c18b7321d0835ad54ce3913f93e0dfce;hpb=0f5283a54fd188072eca23fbd980a43c6c869913;p=builder.git diff --git a/source/externalaction.cpp b/source/externalaction.cpp index bde453f..54c9acc 100644 --- a/source/externalaction.cpp +++ b/source/externalaction.cpp @@ -7,6 +7,7 @@ Distributed under the LGPL #include #include +#include #include "builder.h" #include "externalaction.h" @@ -69,6 +70,8 @@ void ExternalAction::launch() argv_[j++]=strdup(i->c_str()); argv_[j]=0; + if(!work_dir.empty()) + chdir(work_dir); execvp(argv_[0], argv_); cout<<"Couldn't execute "<