Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #158 (defect)

Opened 4 years ago

Last modified 4 years ago

AutoReload does not work on Windows when paths contain spaces

Status: closed (fixed)

Reported by: steadicat Assigned to: peterhunt
Priority: normal Milestone:
Component: CherryPy code Keywords:
Cc:

AutoReload currently does not work on Unix platforms because arguments to the os.spawnve() cannot be quoted on Unix.

Quoting is needed on Windows when paths contain spaces, so a quick fix could look like this:

if sys.platform == "win32": args = [quote(arg) for arg in args]

Change History

05/24/05 10:51:38: Modified by steadicat

  • summary changed from Quoting bug in AutoReload to AutoReload does not work on Windows when paths contain spaces.

Correction:

The current autoreload.py does not work on Windows platforms when paths contain spaces.

This can be solved by adding the following line after line 28:

if sys.platform == "win32": args = ['"%s"' % arg for arg in args]

05/24/05 16:54:54: Modified by steadicat

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [211].

Hosted by WebFaction

Log in as guest/cpguest to create tickets