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 <mig...@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@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to