MetaData variables in Python XMC scripts

  • 0
  • 1
  • Question
  • Updated 3 months ago
Hello all,

how is the correct value assignement for variables in the META section of an python script?

TCL scripts show's like these:


# @ScriptDescription "Copy config while onboarding"
# @SectionStart    (description = "Select configuration" )
#
# @VariableFieldLabel (description = "ConfigName"
#      type        = String
#     scope       = device
#    )
set var ConfigName  ""
# @SectionEnd

How do you have to replace set var ConfigName  "" in python?
If I try ConfigName = "" the Device Settings section is empty if I run the script.

So what is the correct syntax?

Best regards
Stephan
Photo of SH

SH

  • 1,894 Points 1k badge 2x thumb

Posted 3 months ago

  • 0
  • 1

Be the first to post a reply!