From 982dbaceb447b275b56ffc2e993845592e4bc01f Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Thu, 31 Mar 2022 12:00:16 -0600 Subject: Fix sider complaint Signed-off-by: Mats Wichmann --- site_scons/zip_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/site_scons/zip_utils.py b/site_scons/zip_utils.py index d9f6a9b..754029c 100644 --- a/site_scons/zip_utils.py +++ b/site_scons/zip_utils.py @@ -64,10 +64,7 @@ def unzipit(env, target, source): for name in zf.namelist(): dest = os.path.join(env['UNPACK_ZIP_DIR'], name) dir = os.path.dirname(dest) - try: - os.makedirs(dir) - except: - pass + os.makedirs(dir, exist_ok=True) print(dest, name) # if the file exists, then delete it before writing # to it so that we don't end up trying to write to a symlink: @@ -89,7 +86,6 @@ def zipappit(env, target, source): print(f"Creating zipapp {target[0]}:") dest = target[0].abspath olddir = os.getcwd() - #os.chdir(env.Dir(env['CD']).abspath) os.chdir(env['CD'].abspath) try: zipapp.create_archive(env['PSV'], dest, "/usr/bin/env python") -- cgit v0.12