Download custom PBA file during execution, not initialisation

This commit is contained in:
Shreya 2021-03-10 12:28:30 +05:30
parent eeba0513d2
commit 6f134bdb03
1 changed files with 2 additions and 0 deletions

View File

@ -47,8 +47,10 @@ class UsersPBA(PBA):
elif WormConfiguration.custom_PBA_windows_cmd:
self.command = WormConfiguration.custom_PBA_windows_cmd
def _execute_default(self):
if self.filename:
UsersPBA.download_pba_file(get_monkey_dir_path(), self.filename)
return super(UsersPBA, self)._execute_default()
@staticmethod
def should_run(class_name):