fix error message 2

This commit is contained in:
Adrien Beudin 2016-05-02 17:09:54 +02:00
parent bf8adf4a65
commit d8d6f5f8dc

View File

@ -163,8 +163,8 @@ class Image(object):
def main(): def main():
for i in ['gm', 'ffmpeg']: for i in ['gm', 'ffmpeg']:
if os.system("which " + i +" > /dev/null") != 0: if os.system("which " + i +" > /dev/null") != 0:
sys.stderr.write("ERROR: I can't locate the "+ i +" binary, sys.stderr.write("ERROR: I can't locate the "+ i +" binary, "
please install the '" + i + "' package.\n") "please install the '" + i + "' package.\n")
sys.exit(1) sys.exit(1)
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a " error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a "