From 8d22b2777ceda09aeafdfd1dd619936ca0868950 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 9 Aug 2018 16:08:08 -0400 Subject: [PATCH] Fix #109: Fix the path of external data files --- src/pyodide.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyodide.js b/src/pyodide.js index a363b0cdf..f5d85e074 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -117,6 +117,7 @@ var languagePluginLoader = new Promise((resolve, reject) => { }; Module.filePackagePrefixURL = baseURL; + Module.locateFile = (path) => baseURL + path; var postRunPromise = new Promise((resolve, reject) => { Module.postRun = () => { delete window.Module;