Issue #1161 new

[PATCH] Allow cherryd to take a parameter to specify the run directory

Nathan Robertson
created an issue

Twisted's twistd ( has an excellent option:

-d, --rundir <directory> Change to a supplied directory before running (default: .)

The supplied patch provides the same functionality for cherryd, adding it as the -r option:

-r RUNDIR, --rundir=RUNDIR change to a supplied directory before running

It's a simple option that allows the user to specify the directory to change into before launching their code. The attached patch works with or without the "-d" daemon mode flag specified.

We use this option in production, and would appreciate it if it could be merged into the the mainline distribution of CherryPy.

Comments (1)

  1. Log in to comment