Skip to content

Commit

Permalink
[BUG] Fix clear command (hedyorg#4054)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniSkulj authored Feb 21, 2023
1 parent 846ecaa commit dd226f1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
8 changes: 8 additions & 0 deletions prefixes/normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
import random # noqa F401
import time # noqa F401

try:
import extensions # noqa F401
except ModuleNotFoundError:
# This is done because 'extensions' is not a python module but rather a Skulpt JS extension
# These functions are defined in skulpt-stdlib-extensions.js
# When running tests in test_python_prefixes it wil raise ModuleNotFoundError
pass

global int_saver
global convert_numerals # needed for recursion to work
int_saver = int
Expand Down
8 changes: 8 additions & 0 deletions static/js/appbundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/js/appbundle.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions static/js/pythonPrefixes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ export const normal_prefix =
import random # noqa F401
import time # noqa F401
try:
import extensions # noqa F401
except ModuleNotFoundError:
# This is done because 'extensions' is not a python module but rather a Skulpt JS extension
# These functions are defined in skulpt-stdlib-extensions.js
# When running tests in test_python_prefixes it wil raise ModuleNotFoundError
pass
global int_saver
global convert_numerals # needed for recursion to work
int_saver = int
Expand Down

0 comments on commit dd226f1

Please sign in to comment.