summaryrefslogtreecommitdiff
path: root/lwip-to-rtems.py
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijay@rtems.org>2021-03-16 21:35:33 -0600
committerVijay Kumar Banerjee <vijay@rtems.org>2021-03-21 11:32:28 -0600
commit5ad5279ca879c3cf0faf3141c84067bdf232c3a2 (patch)
tree415a3fa457bfb011b3f7c0a5bc1d3252d78722d6 /lwip-to-rtems.py
parentd5eb08aab5c6e051e70cad2c9ecef4dc70ce85e1 (diff)
lwip: Add src files
+ Add rtems port from uLan + Add waf script
Diffstat (limited to 'lwip-to-rtems.py')
-rwxr-xr-xlwip-to-rtems.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lwip-to-rtems.py b/lwip-to-rtems.py
index 72ac41d..c6776db 100755
--- a/lwip-to-rtems.py
+++ b/lwip-to-rtems.py
@@ -94,10 +94,8 @@ def copyFiles(isforward):
for f in files['files-to-import']:
dst_dir = os.path.join(os.path.abspath(LWIP_DIR), *f.split('/')[:-1])
dst_file = os.path.join(dst_dir, f.split('/')[-1])
- try:
+ if not os.path.exists(dst_dir):
os.makedirs(dst_dir)
- except FileExistsError:
- pass
if not os.path.exists(dst_file):
Path(dst_file).touch()
print(dst_file)