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