runmanager.__main__.log_if_global

runmanager.__main__.log_if_global(g, g_list, message)[source]

logs a message if the global name “g” is in “g_list”

useful if you want to print out a message inside a loop over globals, but only for a particular global (or set of globals).

If g_list is empty, then it will use the hardcoded list below (useful if you want to change the behaviour globally)