Commits

Jason R. Coombs committed 946fe4a

Now also call the isapi registration

  • Participants
  • Parent commits 9cf373d
  • Tags 3.0

Comments (0)

Files changed (1)

File jaraco/site/manage.py

 from __future__ import print_function
 
 import os
+import sys
 import shutil
 import subprocess
 
 		shutil.copy(pkg_resources.resource_filename('jaraco.site', script_name),
 			os.path.join(base, script))
 	create_site()
-	print("Don't forget you still need to run the scripts in", base)
+	register_isapi()
 
 def create_site():
 	app_cmd = r'\windows\system32\inetsrv\appcmd.exe'
 		'Primary Web Site/',
 		'/applicationPool:Primary Web Site',
 	])
+
+def register_isapi():
+	subprocess.check_call([
+		sys.executable,
+		'/inetpub/jaraco.site/isapiapp.py',
+		'install',
+		'--server=Primary Web Site',
+	])