summaryrefslogtreecommitdiffstatshomepage
path: root/unix-cpy
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-07-31 23:44:04 +0100
committerDamien George <damien.p.george@gmail.com>2014-07-31 23:44:04 +0100
commit65dd7bc13d2083a7db5a974bf6480b1652a35c82 (patch)
treeaf18c5f8ad6c33a33d7a57e8d495b1890655f15b /unix-cpy
parent5aac6aa445d343074b64bb7fa3ddc9184b0c65be (diff)
downloadmicropython-65dd7bc13d2083a7db5a974bf6480b1652a35c82.tar.gz
micropython-65dd7bc13d2083a7db5a974bf6480b1652a35c82.zip
stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support.
Some important changes to the way the file system is structured on the pyboard: 1. 0: and 1: drive names are now replaced with POSIX inspired directories, namely /flash and /sd. 2. Filesystem now supports the notion of a current working directory. Supports the standard Python way of manipulating it: os.chdir and os.getcwd. 3. On boot up, current directory is /flash if no SD inserted, else /sd if SD inserted. Then runs boot.py and main.py from the current dir. This is the same as the old behaviour, but is much more consistent and flexible (eg you can os.chdir in boot.py to change where main.py is run from). 4. sys.path (for import) is now set to '' (current dir), plus /flash and /flash/lib, and then /sd and /sd/lib if SD inserted. This, along with CWD, means that import now works properly. You can import a file from the current directory. 5. os.listdir is fixed to return just the basename, not the full path. See issue #537 for background and discussion.
Diffstat (limited to 'unix-cpy')
0 files changed, 0 insertions, 0 deletions