Commits

Anonymous committed d72abce

Patch for problem with Windows and --reload

Comments (0)

Files changed (2)

   ``Package.egg-info/dependency_links.txt``, just like all the other
   derivative files in the ``egg-info`` directory
 
+* ``paster serve --reload`` was broken on Windows when the Python
+  executable was in a directory with spaces in it.  This is probably a
+  bug in the ``subprocess`` module.
+
 0.9.7
 -----
 

paste/script/serve.py

             print 'Starting subprocess with file monitor'
         while 1:
             args = [sys.executable] + sys.argv
+            if sys.platform == "win32":
+                args = ['"%s"' % arg for arg in args]
             new_environ = os.environ.copy()
             new_environ[self._reloader_environ_key] = 'true'
             exit_code = os.spawnve(os.P_WAIT, sys.executable,