diff --git a/trac/web/standalone.py b/trac/web/standalone.py
|
a
|
b
|
|
| 188 | 188 | elif len(args) > 1: |
| 189 | 189 | parser.error('the --single-env option cannot be used with ' |
| 190 | 190 | 'more than one enviroment') |
| | 191 | if options.daemonize and options.autoreload: |
| | 192 | parser.error('the --auto-reload option cannot be used with ' |
| | 193 | '--daemonize') |
| 191 | 194 | |
| 192 | 195 | if options.port is None: |
| 193 | 196 | options.port = { |
| … |
… |
|
| 196 | 199 | 'ajp': 8009, |
| 197 | 200 | }[options.protocol] |
| 198 | 201 | server_address = (options.hostname, options.port) |
| 199 | | |
| 200 | | # autoreload doesn't work when daemonized and using relative paths |
| 201 | | if options.daemonize and options.autoreload: |
| 202 | | for path in args + [options.env_parent_dir, options.pidfile]: |
| 203 | | if path and not os.path.isabs(path): |
| 204 | | parser.error('"%s" is not an absolute path.\n\n' |
| 205 | | 'when using both --auto-reload and --daemonize ' |
| 206 | | 'all path arguments must be absolute' |
| 207 | | % path) |
| 208 | 202 | |
| 209 | 203 | # relative paths don't work when daemonized |
| 210 | 204 | args = [os.path.abspath(a) for a in args] |