| 889 | |
| 890 | # A thread designed for stopping the emulation. |
| 891 | class sn_Emulation_Stop_Thread(threading.Thread): |
| 892 | |
| 893 | def __init__(self, remote_ssh, remote_ftp, file_path): |
| 894 | threading.Thread.__init__(self) |
| 895 | self.remote_ssh = remote_ssh |
| 896 | self.remote_ftp = remote_ftp |
| 897 | self.file_path = file_path |
| 898 | |
| 899 | def run(self): |
| 900 | print("Deleting all native bridges and containers...") |
| 901 | self.remote_ftp.put( |
| 902 | os.path.join(os.getcwd(), "starrynet/sn_orchestrater.py"), |
| 903 | self.file_path + "/sn_orchestrater.py") |
| 904 | sn_remote_cmd(self.remote_ssh, |
| 905 | "python3 " + self.file_path + "/sn_orchestrater.py") |