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
#!/usr/bin/python | |
''' | |
A Simple mjpg stream http server for the Raspberry Pi Camera | |
inspired by https://gist.github.com/n3wtron/4624820 | |
''' | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
import io | |
import time | |
import picamera |
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") |