vector<string> argv;
argv.push_back(executable->get_path().str());
- const Component &comp = *bin.get_component();
-
- FS::Path work_dir = comp.get_package().get_source_directory();
+ FS::Path work_dir = bin.get_component()->get_package().get_source_directory();
if(const SharedLibrary *shlib = dynamic_cast<const SharedLibrary *>(&bin))
{