What is the difference between sys and os.sys in python? I have seen many projects using sys when they have imported os. When I tried dir(sys) and dir(os.sys) they had same functions and their output was same.
I often see code using sys.exit like this, rather than using os.sys.exit, but both do the same thing.
import os
import sys
sys.exit()