Python os.EX_OSFILE Constant
Example
Exit code if an operating system file produces error:
#Import os Library
import os
# Exit code
os._exit(os.EX_OSFILE)
Try it Yourself »
Definition and Usage
The os.EX_OSFILE
exit code represents that the operating system file does not exist, could not be opened due to O/S permission or any other kind of error.
Note: Available only on UNIX platforms.
Syntax
os.EX_OSFILE
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |