(val)
| 539 | |
| 540 | |
| 541 | def validate_chdir(val): |
| 542 | # valid if the value is a string |
| 543 | val = validate_string(val) |
| 544 | |
| 545 | # transform relative paths |
| 546 | path = os.path.abspath(os.path.normpath(os.path.join(util.getcwd(), val))) |
| 547 | |
| 548 | # test if the path exists |
| 549 | if not os.path.exists(path): |
| 550 | raise ConfigError("can't chdir to %r" % val) |
| 551 | |
| 552 | return path |
| 553 | |
| 554 | |
| 555 | def validate_statsd_address(val): |
nothing calls this directly
no test coverage detected