Commits

Jason R. Coombs  committed 9572085

Added support to the server for a command-line argument to supply a config file

  • Participants
  • Parent commits 2da75bd

Comments (0)

Files changed (1)

File jaraco/office/convert.py

 import os
+import optparse
 from win32com.client import Dispatch, constants
 import pythoncom
 import threading
 	def start_server():
 		global cherrypy
 		import cherrypy
-		cherrypy.quickstart(ConvertServer())
+		_, args = optparse.OptionParser().parse_args()
+		if args: config, = args
+		cherrypy.quickstart(ConvertServer(), config=config)