diff options
| author | [email protected] <[email protected]> | 2012-12-18 10:31:13 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-18 10:31:13 +0000 |
| commit | 1fa210e6e3d6fbf6bf65db7c81c90bbb50093367 (patch) | |
| tree | 4506a8f11c67550d7ef3578cefd8077478add1e6 /tools/win32spawn.py | |
| parent | be73747fc45d8a6aaeb24d16d57c5f455b918146 (diff) | |
Add RT-Thread Root folder detection.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2495 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools/win32spawn.py')
| -rw-r--r-- | tools/win32spawn.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/win32spawn.py b/tools/win32spawn.py index f513ec3ea4..28a181510e 100644 --- a/tools/win32spawn.py +++ b/tools/win32spawn.py @@ -139,7 +139,8 @@ class Win32Spawn(object): try:
finished = 0
hr, data = win32file.ReadFile(handle, bytesToRead, None)
- self.queue.put_nowait(data)
+ if data:
+ self.queue.put_nowait(data)
except win32api.error:
finished = 1
|
