Kill process right before godot closes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jean dupond


I run a python script from within GDScript using OS.execute(). When I stop Godot, the Python process is still running, is there any signal that Godot emits right before shutting down the game so that I can detect it and shut the other process as well?


Okay I just figured out haha! The signal tree_exiting() can be used for this :slight_smile:

Thanks anyway ^^

jean dupond | 2023-04-06 12:13

You should write this as a answer and select it so people know this is answered without clicking.

Enfyna | 2023-04-06 15:29