--- wand/api.py.orig	2019-12-06 05:43:43.000000000 +0300
+++ wand/api.py	2019-12-11 13:06:23.000000000 +0300
@@ -41,7 +41,7 @@
     versions = '', '-7', '-7.Q8', '-7.Q16', '-6', '-Q16', '-Q8', '-6.Q16'
     options = '', 'HDRI', 'HDRI-2'
     system = platform.system()
-    magick_home = os.environ.get('MAGICK_HOME')
+    magick_home = os.environ.get('MAGICK_HOME') or '@PREFIX@'
     magick_suffix = os.environ.get('WAND_MAGICK_LIBRARY_SUFFIX')
 
     if system == 'Windows':
