$OpenBSD: patch-discovery-wrapper_py,v 1.2 2017/12/13 15:30:43 sthen Exp $

Index: discovery-wrapper.py
--- discovery-wrapper.py.orig
+++ discovery-wrapper.py
@@ -63,7 +63,7 @@ config_file = install_dir + '/config.php'
 
 
 def get_config_data():
-    config_cmd = ['/usr/bin/env', 'php', '%s/config_to_json.php' % install_dir]
+    config_cmd = ['%PHP%', '%s/config_to_json.php' % install_dir]
     try:
         proc = subprocess.Popen(config_cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
     except:
