Fix small error using correct name for addon script when specified in json file (#1881)

This commit is contained in:
eivindt 2019-06-13 14:11:22 +02:00 committed by Daniel Marjamäki
parent c0d8990e8b
commit 5dd7dacfd7
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ namespace {
args += " " + v.get<std::string>();
}
name = obj["script"].get<std::string>();
scriptFile = Path::getPathFromFilename(exename) + "addons/" + fileName + ".py";
scriptFile = Path::getPathFromFilename(exename) + "addons/" + name + ".py";
return "";
}
};