def fix_permissions(files): for root, dirs, unused_files in os.walk(config.build_prefix): for dn in dirs: lchmod(join(root, dn), int('755', 8)) for f in files: path = join(config.build_prefix, f) st = os.lstat(path) lchmod(path, stat.S_IMODE(st.st_mode) | stat.S_IWUSR) # chmod u+w
def fix_permissions(files): for root, dirs, unused_files in os.walk(build_prefix): for dn in dirs: os.chmod(join(root, dn), int('755', 8)) for f in files: path = join(build_prefix, f) st = os.lstat(path) lchmod(path, stat.S_IMODE(st.st_mode) | stat.S_IWUSR) # chmod u+w