#43939: generate_packets.py: Allow importing and calling main() with custom parameters Open Date: 2022-02-20 03:42 Last Update: 2022-02-22 13:10 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/43939 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43939 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-02-22 13:10 Updated by: alienvalkyrie * Status Update from Open to Closed * Resolution Update from Accepted to Fixed --------------------------------------------------------------------- Ticket Status: Reporter: alienvalkyrie Owner: alienvalkyrie Type: Patches Status: Closed Priority: 5 - Medium MileStone: 3.2.0 Component: Bootstrap Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket 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 information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/43939 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43939