Anas Nashif | 3ae5262 | 2019-04-06 09:08:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Sebastian Bøe | 6c3a94c | 2018-04-17 14:37:24 +0200 | [diff] [blame] | 2 | import os |
3 | import sys | ||||
4 | |||||
5 | def 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 | |||||
10 | if __name__ == "__main__": | ||||
11 | main() |