Skip to content

Instantly share code, notes, and snippets.

@AndrewHazelden
Last active December 9, 2015 11:36
Show Gist options
  • Save AndrewHazelden/9617f353eee2208e3f71 to your computer and use it in GitHub Desktop.
Save AndrewHazelden/9617f353eee2208e3f71 to your computer and use it in GitHub Desktop.
A Python script to check the system's environment path variable
import os
print '[System ENV PATH] ' + os.environ['PATH']
# Result: [System ENV PATH] /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment