This is more convenient to set from webserver CGI configurations and SSH
`authorized_keys' files.
'help': 'run commands with the given CONTEXT' }),
('-f', '--config-file', {
'metavar': 'FILE', 'dest': 'config',
'help': 'run commands with the given CONTEXT' }),
('-f', '--config-file', {
'metavar': 'FILE', 'dest': 'config',
- 'default': OS.path.join(HOME, 'chpwd.conf'),
+ 'default': ENV.get('CHPWD_CONFIG',
+ OS.path.join(HOME, 'chpwd.conf')),
'help': 'read configuration from FILE.' }),
('-s', '--ssl', {
'dest': 'sslp', 'action': 'store_true',
'help': 'read configuration from FILE.' }),
('-s', '--ssl', {
'dest': 'sslp', 'action': 'store_true',