> So I'm interested in suggestions/examples where a user can update a
> config file to specify by which means they want (in this case) the ssh
> functionality to be supplied.
You can do something like that (it's called a factory):

COMMANDS = {
    'win32': 'win32 command goes here',
    'linux2': 'linux command goes here',
    'darwin': 'OSX command goes here',
}
def get_command():
    return COMMANDS.get(sys.platform)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to