blob: 540db2850f99c0ac773e3d69e6f8a9da528507f0 [file] [log] [blame]
Anas Nashif3ae52622019-04-06 09:08:09 -04001# SPDX-License-Identifier: Apache-2.0
Sebastian Bøe6c3a94c2018-04-17 14:37:24 +02002import 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()