We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3594337 commit 5279443Copy full SHA for 5279443
Tests/helper.py
@@ -259,11 +259,12 @@ def netpbm_available():
259
260
def magick_command():
261
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"]
+ magickhome = os.environ.get("MAGICK_HOME", "")
+ if magickhome:
+ imagemagick = [os.path.join(magickhome, "convert.exe")]
+ graphicsmagick = [os.path.join(magickhome, "gm.exe"), "convert"]
266
else:
267
+ imagemagick = None
268
graphicsmagick = None
269
270
imagemagick = ["convert"]
0 commit comments