From e841e03e6dfac35e1192e156731d5c48da3e5446 Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Tue, 18 Mar 2025 11:30:26 -0400 Subject: [PATCH] Use copyfile not copy The update script is run by multiple users, so copy() runs into issues with chmod. --- get_solar_flare_png.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_solar_flare_png.py b/get_solar_flare_png.py index 3ec5756..ba1a4b1 100755 --- a/get_solar_flare_png.py +++ b/get_solar_flare_png.py @@ -108,7 +108,7 @@ def main(sys_args=None): # Copy the image to the standard name standard_image_path = Path(args.out_file) - shutil.copy(img_file, standard_image_path) + shutil.copyfile(img_file, standard_image_path) if __name__ == "__main__":