summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-14 22:56:21 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-14 22:56:21 +0100
commit7d2c685544bba08ea5f027d674f35bc0f4bc9a54 (patch)
treeb9fec9d63d173f11609f4becc37a8555fc2997e1 /esp8266/scripts
parent5c1af60e194e434738f3a31a284fa182e14c814f (diff)
downloadmicropython-7d2c685544bba08ea5f027d674f35bc0f4bc9a54.tar.gz
micropython-7d2c685544bba08ea5f027d674f35bc0f4bc9a54.zip
esp8266/scripts/_boot: Mount block device on "" instead of "/".
"" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
Diffstat (limited to 'esp8266/scripts')
-rw-r--r--esp8266/scripts/_boot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/scripts/_boot.py b/esp8266/scripts/_boot.py
index 104034fb25..2b261fb475 100644
--- a/esp8266/scripts/_boot.py
+++ b/esp8266/scripts/_boot.py
@@ -3,10 +3,10 @@ import builtins
from flashbdev import bdev
try:
- vfs = uos.VfsFat(bdev, "/")
+ vfs = uos.VfsFat(bdev, "")
except OSError:
import inisetup
inisetup.check_bootsec()
uos.VfsFat.mkfs(bdev)
- vfs = uos.VfsFat(bdev, "/")
+ vfs = uos.VfsFat(bdev, "")
inisetup.wifi()