mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-31 05:24:11 +08:00
Fix:executable_path maybe None
This commit is contained in:
@@ -300,11 +300,12 @@ class AlasManager(DeployConfig):
|
|||||||
process_name = p.Properties_("Name").Value
|
process_name = p.Properties_("Name").Value
|
||||||
process_id = p.Properties_["ProcessID"].Value
|
process_id = p.Properties_["ProcessID"].Value
|
||||||
|
|
||||||
if process_name == name and process_id != self.self_pid:
|
if executable_path is not None:
|
||||||
executable_path = executable_path.replace(r'\\', '/').replace('\\', '/')
|
if process_name == name and process_id != self.self_pid:
|
||||||
for folder in self.alas_folder:
|
executable_path = executable_path.replace(r'\\', '/').replace('\\', '/')
|
||||||
if folder in executable_path:
|
for folder in self.alas_folder:
|
||||||
yield executable_path, process_name, process_id
|
if folder in executable_path:
|
||||||
|
yield executable_path, process_name, process_id
|
||||||
|
|
||||||
def kill_by_name(self, name):
|
def kill_by_name(self, name):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user