From edebc795d9df8936dd9311b06bdb06de0fe5d9cb Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 9 Nov 2025 13:28:14 +0100 Subject: [PATCH] Update examples/5_take_a_picture.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- examples/5_take_a_picture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/5_take_a_picture.py b/examples/5_take_a_picture.py index 7bbea64..346a4e9 100755 --- a/examples/5_take_a_picture.py +++ b/examples/5_take_a_picture.py @@ -20,7 +20,7 @@ tello.streamoff() # Prepare directory to save script_dir = os.path.dirname(__file__) -artifact_folder_path = os.path.join(script_dir, "../artifacts/images") +artifact_folder_path = os.path.join(os.path.dirname(script_dir), "artifacts", "images") os.makedirs(artifact_folder_path, exist_ok=True) print("[Example] Saving captured picture to:", artifact_folder_path)