Skip to content

Commit b84f01d

Browse files
Move python-main.js to the js folder.
1 parent 9f9aff6 commit b84f01d

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

editor.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,16 @@
2727
2828
You've found the source! :-)
2929
30-
If you want to see how the editor works you should check out the python-main.js file - it has all sorts of
31-
helpful comments for you so you'll be able to work it all out.
30+
If you want to see how the editor works you should check out the js/python-main.js file - it has all
31+
sorts of helpful comments for you so you'll be able to work it all out.
3232
33-
If you're wondering what the long string of random looking characters is at the end of this file, well, it's
34-
a copy of the MicroPython runtime that we copy onto the micro:bit. When you click download, the code you've
35-
written in the editor is similarly encoded and then inserted at the end where you see a line of ::::::::::::
36-
characters.
33+
If you want to know more about this Python Editor visit:
34+
https://github.com/bbcmicrobit/PythonEditor
3735
3836
If you want to know more about Python visit:
39-
4037
http://python.org/
4138
4239
If you want to know more about MicroPython (the version of Python we're using here), then visit:
43-
4440
http://micropython.org/
4541
4642
Finally, remember the Zen of MicroPython:
@@ -72,11 +68,9 @@
7268
<script type="application/javascript">
7369
if (navigator.appVersion.indexOf("MSIE 9") !== -1 || navigator.appVersion.indexOf("MSIE 8") !== -1 || navigator.appVersion.indexOf("MSIE 7") !== -1)
7470
{
75-
document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 10 or greater.</a>');
71+
document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 11 or a Chrome based browser</a>');
7672
document.execCommand('Stop');
7773
}
78-
</script>
79-
<script type="application/javascript">
8074
// VERSION INFORMATION
8175
EDITOR_VERSION = "2.1.0-beta.7";
8276
UPY_1_VERSION = "1.0.1";
@@ -441,7 +435,7 @@ <h2 id="modal-msg-title"></h2>
441435
<script src="js/micropythonapi.js"></script>
442436
<script src="js/urlparser.js"></script>
443437
<script src="js/fs.js"></script>
444-
<script src="python-main.js"></script>
438+
<script src="js/python-main.js"></script>
445439
<script>vex.defaultOptions.className = 'vex-theme-wireframe';</script>
446440
<script>
447441
// Call the web_editor function to start the editor running.
File renamed without changes.

tests.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<script src="js/micropythonapi.js"></script>
2222
<script src="js/urlparser.js"></script>
2323
<script src="js/fs.js"></script>
24-
<script src="python-main.js"></script>
24+
<script src="js/python-main.js"></script>
2525
</head>
2626
<body>
2727
<!-- include spec files here... -->

tests/setup-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ global.microbitUh = require('../static/js/microbit-uh.umd.js');
2222
require('../js/micropythonapi.js');
2323
require('../js/urlparser.js');
2424
require('../js/fs.js');
25-
require('../python-main.js');
25+
require('../js/python-main.js');

0 commit comments

Comments
 (0)