targets/INST2/tables/procedures/upload.py in openc3-cosmos-demo-5.14.2 vs targets/INST2/tables/procedures/upload.py in openc3-cosmos-demo-5.15.0
- old
+ new
@@ -1,11 +1,11 @@
import os
from openc3.utilities.string import formatted
# TBL_FILENAME is set to the name of the table file
-print(f"file:{os.environ['TBL_FILENAME']}")
+print(f"file:{os.getenv('TBL_FILENAME')}")
# Open the file
-file = get_target_file(os.environ["TBL_FILENAME"])
+file = get_target_file(os.getenv("TBL_FILENAME"))
buffer = file.read()
# Implement custom commanding logic to upload the table
# Note that buffer is a Ruby string of bytes
# You probably want to do something like:
# buf_size = 512 # Size of a buffer in the upload command