I'm using an out-of-date version of micropython compiled for UEFI (https://github.com/tianocore/tianocore. ... k-for-UEFI) v.1.9.4 (2018-07-30). I attempted to compile for V1.10 - but it fails.
So; I compiled the micropython framework using the instructions at that page and did a quick helloworld... but now that I'm actually trying to use it; a very simple example fails.
I downloaded upip's stat.py from:
https://github.com/micropython/micropyt ... aster/stat
and put it on my filesystem at libs\.
using micropython.efi -i I manually typed the following commands in micropython prompt:
Code: Select all
import sys
sys.path.append('libs')
import stat
dir(stat)
Code: Select all
['__class__', '__name__', '__path__']
If I do the same thing on the linux port:
Code: Select all
['__class__', '__name__', '__file__', 'ST_MODE', 'ST_INO', 'ST_DEV', 'ST_NLINK', 'ST_UID', 'ST_GID', 'ST_SIZE', 'ST_ATIME', 'ST_MTIME', 'ST_CTIME', 'S_IMODE', 'S_IFMT', 'S_IFDIR', 'S_IFCHR', 'S_IFBLK', 'S_IFREG', 'S_IFIFO', 'S_IFLNK', 'S_IFSOCK', 'S_ISDIR', 'S_ISCHR', 'S_ISBLK', 'S_ISREG', 'S_ISFIFO', 'S_ISLNK', 'S_ISSOCK', 'S_ISUID', 'S_ISGID', 'S_ENFMT', 'S_ISVTX', 'S_IREAD', 'S_IWRITE', 'S_IEXEC', 'S_IRWXU', 'S_IRUSR', 'S_IWUSR', 'S_IXUSR', 'S_IRWXG', 'S_IRGRP', 'S_IWGRP', 'S_IXGRP', 'S_IRWXO', 'S_IROTH', 'S_IWOTH', 'S_IXOTH', 'UF_NODUMP', 'UF_IMMUTABLE', 'UF_APPEND', 'UF_OPAQUE', 'UF_NOUNLINK', 'UF_COMPRESSED', 'UF_HIDDEN', 'SF_ARCHIVED', 'SF_IMMUTABLE', 'SF_APPEND', 'SF_NOUNLINK', 'SF_SNAPSHOT', '_filemode_table', 'filemode']
What am I doing wrong?