From 73df413f23b07040cd4efe6cd59e73691c83acd9 Mon Sep 17 00:00:00 2001 From: Andreas Gattringer <andreas.gattringer@univie.ac.at> Date: Thu, 28 Mar 2024 14:22:23 +0100 Subject: [PATCH] upload scripts: minor repairs --- scripts/helpers/ampy.py | 2 +- umnp/tools/fs/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helpers/ampy.py b/scripts/helpers/ampy.py index c0a59f9..be182b1 100644 --- a/scripts/helpers/ampy.py +++ b/scripts/helpers/ampy.py @@ -17,7 +17,7 @@ def upload_file(port: str, local_path: str, remote_path: str | None = None): def list_remote_file_dates_and_directories(port): - cmd = ["ampy", "--port", port, "run", "tools/list-files.py"] + cmd = ["ampy", "--port", port, "run", "umnp/tools/list-files.py"] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) files = {} dirs = [] diff --git a/umnp/tools/fs/__init__.py b/umnp/tools/fs/__init__.py index b1cdf51..6c9c9f6 100644 --- a/umnp/tools/fs/__init__.py +++ b/umnp/tools/fs/__init__.py @@ -1,4 +1,5 @@ import os +import time def human_readable_time(timestamp: int): -- GitLab