diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2022-08-24 07:54:37 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-25 13:37:09 -0500 |
commit | 23bf77373f5d6c3130a25fc3eb48ac863978ce93 (patch) | |
tree | b1a1263d9bb7330e1c9fa52bbbc327336b77338c /lwip-to-rtems.py | |
parent | rtemslwip: Document a deficiency in syslog (diff) | |
download | rtems-lwip-23bf77373f5d6c3130a25fc3eb48ac863978ce93.tar.bz2 |
lwip.py: Remove usage of YAML
YAML is not supported in base Python installs and so is not safe to
blindly assume is available. This swaps existing usage to JSON to be
more compatible.
Diffstat (limited to 'lwip-to-rtems.py')
-rwxr-xr-x | lwip-to-rtems.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lwip-to-rtems.py b/lwip-to-rtems.py index c6776db..acd6922 100755 --- a/lwip-to-rtems.py +++ b/lwip-to-rtems.py @@ -28,7 +28,7 @@ from __future__ import print_function import os import sys import getopt -import yaml +import json from shutil import copyfile from pathlib import Path @@ -87,8 +87,7 @@ print("Direction: %s" % (("reverse", "forward")[isForward])) def copyFiles(isforward): if (isforward): - config_file = open('file-import.yaml', 'r').read() - files = yaml.full_load(config_file) + files = json.load(open('file-import.json', 'r')) src_dir = os.path.abspath(LWIP_UPSTREAM_DIR) print("Files Imported:") for f in files['files-to-import']: |