targets/INST2/tables/procedures/download.py in openc3-cosmos-demo-5.14.2 vs targets/INST2/tables/procedures/download.py in openc3-cosmos-demo-5.15.0
- old
+ new
@@ -1,9 +1,9 @@
import os
# TBL_FILENAME is set to the name of the table file to overwrite
-print(f"file:{os.environ['TBL_FILENAME']}")
+print(f"file:{os.getenv('TBL_FILENAME')}")
# Download the file
# Implement custom commanding logic to download the table
# You probably want to do something like:
buffer = ""
# i = 1
@@ -13,6 +13,6 @@
# # Request a part of the table buffer
# cmd("TGT DUMP with TABLE_ID #{table_id}, SEGMENT #{i}")
# buffer += tlm("TGT DUMP_PKT DATA")
# i += 1
# end
-put_target_file(os.environ["TBL_FILENAME"], buffer)
+put_target_file(os.getenv("TBL_FILENAME"), buffer)