Linux Audio
Check our new training course
Embedded Linux Audio
1 2 3 4 5 6 7 8 9 10 11 12
# 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()