Created
March 4, 2014 17:24
-
-
Save nioto/9351277 to your computer and use it in GitHub Desktop.
Some python code snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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