History

don't put empty folders at end of scripts tree. allow /~/ to work from outside scripts

Seth Alves committed 10 years ago

Commit cfa847b1 parent 82990414 files · +10 −6Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−3
@@ -220,11 +220,10 @@ void ScriptEngine::loadURL(const QUrl& scriptURL, bool reload) { · 219 unmodified lines
220220 return;
221221 }
222222
223− _fileNameString = scriptURL.toString();
223+ QUrl url = expandScriptUrl(normalizeScriptURL(scriptURL));
224+ _fileNameString = url.toString();
224225 _isReloading = reload;
225226
226− QUrl url(scriptURL);
227−
228227 bool isPending;
229228 auto scriptCache = DependencyManager::get<ScriptCache>();
230229 scriptCache->getScript(url, this, isPending, reload);