mirror of
https://github.com/lcdr/utils.git
synced 2024-08-30 17:32:16 +00:00
Fix being unable to read spawntemplate if it's at the end of config_data (#9)
This commit is contained in:
parent
74508f879a
commit
98613acac2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user