We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74fbf18 commit eeaac66Copy full SHA for eeaac66
index.js
@@ -18,8 +18,9 @@ global.mpjsPrintStdout = stdout_print;
18
const mp = require('./lib/micropython.js');
19
if (typeof window === 'undefined' && typeof importScripts === 'undefined') {
20
browser = false;
21
- pyjs = require('fs').readFileSync('./js.py');
22
-} else {
+ pyjs = require('fs').readFileSync('./js.py', {pwd: __dirname});
+}
23
+else {
24
pyjs = require('!raw-loader!./js.py');
25
}
26
0 commit comments