I have a requirement to create multiple perforce labels from my test script. Following snippet creates a perforce label. But it happens to open a .tmp file for me to edit the description and the process waits until I close the .tmp file. Is there a way I can prevent the .tmp file from getting opened?
import P4
p4 = P4()
p4.connect()
p4.run('label', ['label_name'])
p4.disconnect()
P.S: I am aware of the solution to use p4 label -o -t label_template new_label | p4 label -i. Is there a way I can do this from P4Python?