You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to fetch files from user (using JS), then add those files in PyPyjs system so they can be imported. I am new to python and I found no docs for PyPy, could you please help me out?
I fetch the files as strings, so basically the question is how to make a file from string in pypy vm.
My complete plan is to run AI tournament without uploading user's code on server. The server will only send game field and ask AI to play (make valid move).
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named player
Another way I tested availability of file was execfile("player.py"):
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "player.py", line 1, in <module>
from board import Board
ImportError: No module named board
(player.py imports board)
I'll try to use the direct method this.Module.FS_createDataFile, but I inspected pypyjs object in DOM and I see no Module property in the object.
I need to fetch files from user (using JS), then add those files in PyPyjs system so they can be
import
ed. I am new to python and I found no docs for PyPy, could you please help me out?I fetch the files as strings, so basically the question is how to make a file from string in pypy vm.
My complete plan is to run AI tournament without uploading user's code on server. The server will only send game field and ask AI to play (make valid move).
The text was updated successfully, but these errors were encountered: