$OpenBSD: patch-wscript,v 1.4 2010/10/03 12:40:55 jasper Exp $
--- wscript.orig	Tue Jul  6 19:50:52 2010
+++ wscript	Sun Oct  3 14:40:31 2010
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!${MODPY_BIN}
 # encoding: utf-8
 # Thomas Nagy, 2005, 2006, 2007, 2008
 
@@ -340,7 +340,7 @@ def build(bld):
 		if val != True and val != "y": sys.exit(1)
 		create_waf()
 
-	dir = os.path.join('lib', 'waf-%s-%s' % (VERSION, REVISION), 'wafadmin')
+	dir = 'lib/python${MODPY_VERSION}/site-packages/wafadmin'
 
 	wafadmin = bld(features = 'py')
 	wafadmin.find_sources_in_dirs('wafadmin', exts=['.py'])
