Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env python
- import os
- txt = "in " if os.getcwd() in os.getenv('PATH').split(":") else "not in"
- print "Current path '%s'\nis %s list of 'PATH' environment variable below\n%s" % (
- os.getcwd(),
- txt,
- "\n".join(os.getenv('PATH').split(":"))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement