diff --git a/dist/iotAmak-0.0.1-py3-none-any.whl b/dist/iotAmak-0.0.1-py3-none-any.whl index 28d73a639ad5b510b63000f303fe759af4f32d98..6593a49ae36d5395a80151bb29aef8b266b2bb5f 100644 Binary files a/dist/iotAmak-0.0.1-py3-none-any.whl and b/dist/iotAmak-0.0.1-py3-none-any.whl differ diff --git a/iotAmak/ihm.py b/iotAmak/ihm.py index 5a2319750d4a444d1160761ba9ac83016d49679b..11b4f190f04962ce01c8e4289f65e01fc9bb03ef 100644 --- a/iotAmak/ihm.py +++ b/iotAmak/ihm.py @@ -140,7 +140,7 @@ class Ihm(MqttClient, SSHClient): print("Hostname :", self.clients[i_client].hostname, " User :", self.clients[i_client].user) self.run_cmd(i_client, commands) - self.update(self.experiment_name) + self.update(self.experiment_name, str(pathlib.Path().resolve())) if cmd.lower() == "agent": self.agent() diff --git a/iotAmak/tool/ssh_client.py b/iotAmak/tool/ssh_client.py index 366b9264588d3eeb7e9547f775fe3b519d310672..5d4155f9379ff320fdb0270d7e3a4e22b06e255c 100644 --- a/iotAmak/tool/ssh_client.py +++ b/iotAmak/tool/ssh_client.py @@ -46,7 +46,7 @@ class SSHClient: print(e) return ret - def update(self, experiment_name): + def update(self, experiment_name, path_to_experiment): for client in self.clients: transport = paramiko.Transport((client.hostname, 22)) transport.connect(username=client.user, password=client.password) @@ -54,7 +54,7 @@ class SSHClient: sftp.mkdir("Desktop/mqtt_goyon/example/" + experiment_name, ignore_existing=True) sftp.put_dir( - str(pathlib.Path().resolve()), + path_to_experiment, "Desktop/mqtt_goyon/example/" + experiment_name ) sftp.close()