Python os.EX_CANTCREAT Constant
Example
Exit code if user specified output file could not be created:
#Import os Library
import os
# Exit code
os._exit(os.EX_CANTCREAT)
Try it Yourself »
Definition and Usage
The os.EX_CANTCREAT
exit code that means a user specified output file could not be created.
Note: Available only on UNIX platforms.
Syntax
os.EX_CANTCREAT
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |