Skip to content

Instantly share code, notes, and snippets.

@nioto
Created March 4, 2014 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nioto/9351277 to your computer and use it in GitHub Desktop.
Save nioto/9351277 to your computer and use it in GitHub Desktop.
Some python code snippet
# 1. onliner Python script to show path of module, here picamera
python -c "import picamera; import os.path; print os.path.abspath(picamera.__file__);"
# 2. View Python path
python -c "import sys; print sys.path;"
# 3. Code for modifying path of Python modules
import sys
sys.path.insert(0, "/usr/local/lib/python2.7/dist-package")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment