Checks whether the PlanetCNC library is actively running. This function is useful for verifying that the library is running, rather than just being loaded or attached as a DLL.
The function returns the value which is set to true during application startup. This allows clients to distinguish between a fully running instance of the library and cases where the DLL's functions might be accessed without an active application.
Also use is_running to check if it is properly initialized.
planetcnc.is_running()
#! /usr/bin/env python import planetcnc if planetcnc.is_running(): print("PlanetCNC is running.") else: print("PlanetCNC is not running.")