Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
ea2439e70c46e76e595b573d3c2744c3e6922301
/
.
/
scripts
/
dir_is_writeable.py
blob: 14cde3fb2d760b21d46e9cc9395669eb127b2102 [
file
] [
log
] [
blame
]
# SPDX-License-Identifier: Apache-2.0
import
os
import
sys
def
main
():
is_writeable
=
os
.
access
(
sys
.
argv
[
1
],
os
.
W_OK
)
return_code
=
int
(
not
is_writeable
)
sys
.
exit
(
return_code
)
if
__name__
==
"__main__"
:
main
()