From 7cc2c1ef13822cf37cfe82cbea03127b74d546a0 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 12 Apr 2010 17:37:33 +0200 Subject: skyped: use os.path.expanduser for file paths in config Requested-by: ilf --- skype/skyped.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skype/skyped.py') diff --git a/skype/skyped.py b/skype/skyped.py index 2e483f08..9c6a1e61 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -278,8 +278,8 @@ if __name__=='__main__': options.config.read(options.cfgpath) options.config.username = options.config.get('skyped', 'username').split('#')[0] options.config.password = options.config.get('skyped', 'password').split('#')[0] - options.config.sslkey = options.config.get('skyped', 'key').split('#')[0] - options.config.sslcert = options.config.get('skyped', 'cert').split('#')[0] + options.config.sslkey = os.path.expanduser(options.config.get('skyped', 'key').split('#')[0]) + options.config.sslcert = os.path.expanduser(options.config.get('skyped', 'cert').split('#')[0]) # hack: we have to parse the parameters first to locate the # config file but the -p option should overwrite the value from # the config file -- cgit v1.2.3