-
-
Save Hellowlol/20e98fef88979baf2590 to your computer and use it in GitHub Desktop.
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
import os | |
try: | |
from pil import Image | |
print "imported from pil import Image #pillow" | |
except ImportError: | |
try: | |
import Image | |
print "imported image #PIL" | |
except ImportError: | |
print "no pil or pillow" | |
fp = r'/Applications/HTPCManager/userdata/images/b130c2be18a6e67879b74e7b67b3ab5b' # or some other path to images | |
if os.path.isfile(fp): | |
print "the damn fp is file" | |
im = Image.open(fp) | |
im.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment