mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-19 16:42:50 +01:00
Some improvements to the commands.process function - better process naming and informational output.
Conflicts: plugins/String/plugin.py src/commands.py
This commit is contained in:
parent
be585ecea9
commit
e98ac0f4c2
@ -993,11 +993,11 @@ class CommandProcess(world.SupyProcess):
|
|||||||
to run in processes.
|
to run in processes.
|
||||||
"""
|
"""
|
||||||
def __init__(self, target=None, args=(), kwargs={}):
|
def __init__(self, target=None, args=(), kwargs={}):
|
||||||
self.command = args[0]
|
pn = kwargs.pop('pn', 'Unknown')
|
||||||
self.cb = target.im_self
|
cn = kwargs.pop('cn', 'unknown')
|
||||||
procName = 'Process #%s (for %s.%s)' % (world.processesSpawned,
|
procName = 'Process #%s (for %s.%s)' % (world.processesSpawned,
|
||||||
self.cb.name(),
|
pn,
|
||||||
self.command)
|
cn)
|
||||||
log.debug('Spawning process %s (args: %r)', procName, args)
|
log.debug('Spawning process %s (args: %r)', procName, args)
|
||||||
self.__parent = super(CommandProcess, self)
|
self.__parent = super(CommandProcess, self)
|
||||||
self.__parent.__init__(target=target, name=procName,
|
self.__parent.__init__(target=target, name=procName,
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+limnoria (2011-08-23T16:41:52+0200)'
|
version = '0.83.4.1+limnoria (2011-08-25T11:36:47+0200)'
|
||||||
|
Loading…
Reference in New Issue
Block a user