Skip to content

Commit 5279443

Browse files
Make code for ImageMagick/GraphicsMagick more symmetric
1 parent 3594337 commit 5279443

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Tests/helper.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,12 @@ def netpbm_available():
259259

260260
def magick_command():
261261
if sys.platform == "win32":
262-
imagemagick = os.environ.get("MAGICK_HOME", "")
263-
if imagemagick:
264-
imagemagick = [os.path.join(imagemagick, "convert.exe")]
265-
graphicsmagick = [os.path.join(imagemagick, "gm.exe"), "convert"]
262+
magickhome = os.environ.get("MAGICK_HOME", "")
263+
if magickhome:
264+
imagemagick = [os.path.join(magickhome, "convert.exe")]
265+
graphicsmagick = [os.path.join(magickhome, "gm.exe"), "convert"]
266266
else:
267+
imagemagick = None
267268
graphicsmagick = None
268269
else:
269270
imagemagick = ["convert"]

0 commit comments

Comments
 (0)