Ticket #43939

generate_packets.py: Allow importing and calling main() with custom parameters

Open Date: 2022-02-20 11:42 Last Update: 2022-02-22 21:10

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Follow-up to #43931. Part of #43927.

Currently, it is not possible to get access to the methods inside the script via import, without also executing the script. Being able to do so, and to then execute the main script at a later point with arbitrary parameters, could be useful.

Ticket History (3/4 Histories)

2022-02-20 11:42 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: Allow importing and calling main() with custom parameters" created
2022-02-20 11:58 Updated by: alienvalkyrie
  • Resolution Update from None to Accepted
2022-02-22 21:10 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login