try moving picamera import

pull/120/head
alanbjohnston 5 years ago committed by GitHub
parent 03c3047080
commit 363f250e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,6 @@ import subprocess
import time
#import os
import sys
from picamera import PiCamera
from os import system
GPIO.setmode(GPIO.BCM)
@ -60,6 +59,7 @@ if __name__ == "__main__":
elif (('s' == sys.argv[1]) or ('sstv' in sys.argv[1])):
print("SSTV")
try:
from picamera import PiCamera
camera = PiCamera()
print("Camera present")
camera_present = 1

Loading…
Cancel
Save

Powered by TurnKey Linux.