Commits

Anonymous committed 597cc82

Fixed #357.

  • Participants
  • Parent commits 95cbe95

Comments (0)

Files changed (1)

File werkzeug/serving.py

 import sys
 import time
 import thread
+import subprocess
 from urllib import unquote
 from urlparse import urlparse
 from itertools import chain
     while 1:
         _log('info', ' * Restarting with reloader...')
         args = [sys.executable] + sys.argv
-        if sys.platform == 'win32':
-            args = ['"%s"' % arg for arg in args]
         new_environ = os.environ.copy()
         new_environ['WERKZEUG_RUN_MAIN'] = 'true'
-        exit_code = os.spawnve(os.P_WAIT, sys.executable, args, new_environ)
+        exit_code = subprocess.call(args, env=new_environ)
         if exit_code != 3:
             return exit_code