Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
dea9343d617632c17a9db459f2b7dcb4df0d10ed
/
.
/
scripts
/
dir_is_writeable.py
blob: 540db2850f99c0ac773e3d69e6f8a9da528507f0 [
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
()