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