1# SPDX-License-Identifier: Apache-2.0 2import os 3import sys 4 5def main(): 6 is_writeable = os.access(sys.argv[1], os.W_OK) 7 return_code = int(not is_writeable) 8 sys.exit(return_code) 9 10if __name__ == "__main__": 11 main() 12