From 7eabe70db54c3bf99889f04bca205d388e0d755b Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 20 Jan 2017 23:51:42 +0100 Subject: [PATCH] [Launcher] Set default permissions to 'lib' before updating --- launcher.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/launcher.py b/launcher.py index e40e4b6f2..d7d3dd893 100644 --- a/launcher.py +++ b/launcher.py @@ -418,7 +418,7 @@ def user_pick_yes_no(): def remove_readonly(func, path, excinfo): - os.chmod(path, stat.S_IWRITE) + os.chmod(path, 0o755) func(path) @@ -426,12 +426,12 @@ def remove_reqs_readonly(): """Workaround for issue #569""" if not os.path.isdir(REQS_DIR): return - os.chmod(REQS_DIR, stat.S_IWRITE) + os.chmod(REQS_DIR, 0o755) for root, dirs, files in os.walk(REQS_DIR): for d in dirs: - os.chmod(os.path.join(root, d), stat.S_IWRITE) + os.chmod(os.path.join(root, d), 0o755) for f in files: - os.chmod(os.path.join(root, f), stat.S_IWRITE) + os.chmod(os.path.join(root, f), 0o755) def calculate_md5(filename):