Logo
Explore Help
Sign In
dasharo/zephyr
0
0
Fork 0
You've already forked zephyr
mirror of https://github.com/Dasharo/zephyr.git synced 2026-03-06 14:57:20 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
ee2c66a627b87889fc8a05aaa7f24ef468b8cf7e
zephyr/scripts/dir_is_writeable.py

12 lines
228 B
Python
Raw Normal View History

license: cleanup: add SPDX Apache-2.0 license identifier Update the files which contain no license information with the 'Apache-2.0' SPDX license identifier. Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of Zephyr, which is Apache version 2. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-06 09:08:09 -04:00
# SPDX-License-Identifier: Apache-2.0
cmake: Add function for checking if a directory is write-able Added a CMake extention for determining if a directory is write-able by the build system. To determine this, we attempt to 'touch' a file in the directory and check the return code of this command. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-04-17 14:37:24 +02:00
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()
Reference in New Issue Copy Permalink
Powered by Gitea Page: 822ms Template: 19ms
English
English
Licenses API