blob: 14cde3fb2d760b21d46e9cc9395669eb127b2102 [file] [log] [blame]
Anas Nashif3ae52622019-04-06 09:08:09 -04001
2# SPDX-License-Identifier: Apache-2.0
Sebastian Bøe6c3a94c2018-04-17 14:37:24 +02003import os
4import sys
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
11if __name__ == "__main__":
12 main()