mirror of
https://github.com/lcdr/utils.git
synced 2025-07-25 19:12:13 +00:00
Fix being unable to read spawntemplate if it's at the end of config_data (#9)
This commit is contained in:
@ -325,6 +325,7 @@ class LUZViewer(viewer.Viewer):
|
||||
scale = stream.read(c_float)
|
||||
config_data = stream.read(str, length_type=c_uint)
|
||||
config_data = config_data.replace("{", "<crlbrktopen>").replace("}", "<crlbrktclose>").replace("\\", "<backslash>") # for some reason these characters aren't properly escaped when sent to Tk
|
||||
config_data = config_data + "\n" # Need newline at end incase the spawntemplate is at the end of the config data
|
||||
assert stream.read(c_uint) == 0
|
||||
lot_name = ""
|
||||
if lot == 176:
|
||||
|
Reference in New Issue
Block a user