$OpenBSD: patch-discovery-wrapper_py,v 1.3 2018/07/01 21:49:17 sthen Exp $

Index: discovery-wrapper.py
--- discovery-wrapper.py.orig
+++ discovery-wrapper.py
@@ -64,7 +64,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:
