Added warning messages if the user does not have the external programs available on their computer.
svn: r17449
This commit is contained in:
parent
ba8d8b582c
commit
dc73ac9268
@ -28,7 +28,6 @@ import os, sys
|
||||
from datetime import datetime, date
|
||||
import calendar, time
|
||||
|
||||
|
||||
# abilty to escape certain characters from output...
|
||||
from xml.sax.saxutils import escape as _html_escape
|
||||
|
||||
@ -103,8 +102,8 @@ if (software_version and (software_version < Min_VERSION)):
|
||||
#
|
||||
# The programs are ImageMagick, and jhead
|
||||
# * ImageMagick -- Convert and Delete all Exif metadata...
|
||||
# * jhead -- re-initialize a jpeg image...
|
||||
# * del -- delete old files from the convert command
|
||||
# * jhead -- re-initialize a jpeg, and other features...
|
||||
# * del/ rm -- delete old files from the convert command...
|
||||
#********************************************************************
|
||||
# Windows 32bit systems
|
||||
system_platform = os.sys.platform
|
||||
@ -123,6 +122,17 @@ else:
|
||||
_JHEAD_FOUND = "jhead" if Utils.search_for("jhead") else False
|
||||
_DEL_FOUND = "del" if Utils.search_for("del") else False
|
||||
|
||||
# if external programs are not found, let the user know about the missing functionality?
|
||||
if not _MAGICK_FOUND:
|
||||
print(_("ImageMagick's convert program was not found on this computer.\n"
|
||||
"You may download it from here: %s...") % (
|
||||
"http://www.imagemagick.org/script/index.php"))
|
||||
|
||||
if not _JHEAD_FOUND:
|
||||
print(_("Jhead program was not found on this computer.\n"
|
||||
"You may download it from: %s...") % (
|
||||
"http://www.sentex.net/~mwandel/jhead/"))
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Constants
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user