> Hi I have trouble splitting brython files for my flask app.
To follow up on that, I have two further questions:
1) is there a way to have multiple brython scripts, for example
something along the lines of
<script type ='text/python' src= 'a.py' id=a></script>
<script type ='text/python' src= 'b.py' id=b></script>
and then import one into the other, for example to have in b.py
import a
?
2) Is there a way to tell brython to look for a *.py file instead of
other possibilities? Currently I set explicitly pythonpath as an
argument for brython, but it takes painfuly long time, because first I
get:
Error 404 means that Python module domwriter was not found at
url /user0/static/domwriter.js brython.js:6940:1
Error 404 means that Python module domwriter was not found at
url /user0/static/domwriter.pyc.js brython.js:6940:1
Error 404 means that Python module domwriter was not found at
url /user0/static/domwriter/__init__.pyc.js
and only then brython actually loads what it should i.e. domwriter.py
Best,
Lukasz