Skip to content

Commit

Permalink
add myself to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Feb 23, 2025
1 parent 1221dd8 commit d5eca55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openc3/python/openc3/conversions/generic_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(
def call(self, value, packet, buffer):
myself = packet # For backwards compatibility
if myself: # Remove unused variable warning for myself
generic_globals = {"value": value, "packet": packet, "buffer": buffer}
generic_globals = {"value": value, "myself": myself, "packet": packet, "buffer": buffer}
exec(self.exec_lines, generic_globals)
return eval(self.eval_line, generic_globals)

Expand Down

0 comments on commit d5eca55

Please sign in to comment.