[enh] check for gm binary
This commit is contained in:
parent
776674cb3e
commit
c8ceee9e9e
@ -34,6 +34,9 @@ def error(test, error_message):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if os.system("which gm > /dev/null") != 0:
|
||||||
|
sys.stderr.write("WARNING: I can't locate the 'gm' binary, I won't be able to resize images.\n")
|
||||||
|
|
||||||
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a settings.yaml in the current working directory")
|
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a settings.yaml in the current working directory")
|
||||||
|
|
||||||
settings = yaml.safe_load(open("settings.yaml", "r"))
|
settings = yaml.safe_load(open("settings.yaml", "r"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user