Permalink
Browse files

Check if convert is installed

Check if Paket ImageMagick is installed in order to convert cover.gif to pdf, without error.
  • Loading branch information...
1 parent f19afc3 commit 50c1c8f730b8ad9f1635c3f1c9ed5e405959c348 @hannoL hannoL committed Oct 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 springer_download.py
View
4 springer_download.py
@@ -34,6 +34,10 @@ def main(argv):
if not findInPath("iconv"):
error("You have to install iconv.")
+ #Test if convert is installed
+ if os.system("convert --version > /dev/null 2>&1")!=0:
+ error("You have to install the packet ImageMagick in order to use convert")
+
try:
opts, args = getopt.getopt(argv, "hl:c:n", ["help", "link=", "content=", "no-merge"])
except getopt.GetoptError:

0 comments on commit 50c1c8f

Please sign in to comment.