also make sure local file includes work for non-entity scripts

This commit is contained in:
Brad Hefta-Gaub 2015-09-03 19:06:26 -07:00
parent 063320771c
commit b0f239b89d

View file

@ -60,6 +60,12 @@ void BatchLoader::start() {
} else {
QString fileName = url.toLocalFile();
// sometimes on windows, we see the toLocalFile() return null,
// in this case we will attempt to simply use the url as a string
if (fileName.isEmpty()) {
fileName = url.toString();
}
qCDebug(scriptengine) << "Reading file at " << fileName;
QFile scriptFile(fileName);