Hi
I would like my python script take screenshot of my desktop every 15 mints and saving in my home dir in pic folder.but I get error?
import os
import sys
import time
import ImageGrab
environ=os.environ
img = ImageGrab.grab()
FILES_DIR = 'pic'
SAVE_PATH = os.path.join(environ['HOMEDRIVE'], environ['HOMEPATH'])
LOGFILE_NAME = 'test.png'
LOGFILE_PATH = os.path.join(SAVE_PATH, FILES_DIR, LOGFILE_NAME)
img.save(SAVE_PATH)
//Traceback (most recent call last):
File "C:\Users\linux\Desktop\screenshot1.py", line 11, in <module>
img.save(SAVE_PATH)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 1423, in save
raise KeyError(ext) # unknown extension
KeyError: ''//