Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
9e7d16acd9b20e15f69e47ef239ff4bc7149d220
/
.
/
scripts
/
dir_is_writeable.py
blob: b087b0c7b5e7fcb9076413ac73cbef6ee32b146a [
file
] [
log
] [
blame
]
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
()