Operating System Interface : Os : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Os »

 

Operating System Interface


import os

def print_system_info() :
    print "Current directory: "+os.curdir
    print "Parent director: "+os.pardir
    print "File Separator: "+os.sep
    print "Extension Separator: "+os.extsep
    print "Environment strings:"
    for e in os.environ :
        print e

print_system_info()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Os