diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2009-08-31 19:06:46 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2009-08-31 19:06:46 +0200 |
commit | 1a575f69c852614d53f618a3c95295113029477b (patch) | |
tree | 2421c5ae5378a4f646c59757ff1c1a44e902827e | |
parent | ab165c512416eb789591e02aab2c4678ccd27f8e (diff) |
skyped: let the error message suggest placing the config file under ~/.skyped
so the new error message will be like:
$ python skyped.py -d -n
Can't find configuration file at '/home/vmiklos/.skyped/skyped.conf'.
Use the -c option to specify an alternate one.
-rw-r--r-- | skype/skyped.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index 806dd983..3849d807 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -209,8 +209,10 @@ class SkypeApi: class Options: def __init__(self): self.cfgpath = os.path.join(os.environ['HOME'], ".skyped", "skyped.conf") - if not os.path.exists(self.cfgpath): - self.cfgpath = "/usr/local/etc/skyped/skyped.conf" + # for backwards compatibility + self.syscfgpath = "/usr/local/etc/skyped/skyped.conf" + if os.path.exists(self.syscfgpath): + self.cfgpath = self.syscfgpath self.daemon = True self.debug = False self.help = False |