Show my cwd execution dir and first 6 import paths : System Path « System « Python






Show my cwd execution dir and first 6 import paths

Show my cwd execution dir and first 6 import paths

import os, sys
print 'my os.getcwd =>', os.getcwd()            
print 'my sys.path  =>', sys.path[:6]            
raw_input()                                     # wait for keypress if clicked

           
       








Related examples in the same category

1.system os pathsystem os path
2.Append to system path
3.Output system parameter: PATH