[Bf-committers] API: How to get a list of running scripts?

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Apr 12 20:06:48 CEST 2012


Hi,

If this is about an addon, there seems to be a function to check if it
is running:

import addon_utils
addon_utils.check('space_view3d_3d_navigation')

If not then it seems more difficult. I might be wrong here, but I
think in that case there isn't really any running 'script object' that
exists. There might be python objects in memory that were created by
the script, like functions that were installed as handlers somewhere,
but it's just bits of data attached in various places. An error in the
code will not remove those python objects, they stick around until you
actually go and delete them.

Brecht.

On Wed, Apr 11, 2012 at 3:40 AM, Remigiusz Fiedler <migius at gmx.net> wrote:
> hi all,
> I am looking for a method for conditional start of a script only if no
> instance of it is running already.
> How to get a list of running scripts through API?
>
> thanks in advance,
> migius
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list