Output system parameter: PYTHONPATH path by path : System Variables « System « Python






Output system parameter: PYTHONPATH path by path

import os
import string
for dir in string.split(os.environ['PYTHONPATH'], os.pathsep):
   print dir

           
       








Related examples in the same category

1.List system variable keys and set a system parameter key
2.Output USER in your system