mirror of
https://github.com/aidygus/LinVAM.git
synced 2024-11-23 17:18:06 +11:00
simplify command splitting
This commit is contained in:
parent
d4753faa08
commit
13a64acfbd
@ -211,11 +211,7 @@ class ProfileExecutor(threading.Thread):
|
|||||||
w_commands = self.m_profile['commands']
|
w_commands = self.m_profile['commands']
|
||||||
flag = False
|
flag = False
|
||||||
for w_command in w_commands:
|
for w_command in w_commands:
|
||||||
parts = []
|
parts = w_command['name'].split(',')
|
||||||
if w_command['name'].find(',') != -1:
|
|
||||||
parts = w_command['name'].split(',')
|
|
||||||
else:
|
|
||||||
parts.append(w_command['name'])
|
|
||||||
|
|
||||||
for part in parts:
|
for part in parts:
|
||||||
if part.lower() == p_cmdName:
|
if part.lower() == p_cmdName:
|
||||||
|
Loading…
Reference in New Issue
Block a user