aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skyped.py
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-04-29 19:24:18 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2009-04-29 19:24:18 +0200
commit1b48afb69b4b523cbf51f678936ed7d33f3f6011 (patch)
treee69aed2f887373a04e3c20f87e377af20f098cbd /skype/skyped.py
parentb9f2894f04f3f4793034c43f26c0ded3595017dd (diff)
add support for user-wide config files
in the past the config file was expected in /etc/skyped, change this to ~/.skyped, and just fall back to the previous path if it's not available.
Diffstat (limited to 'skype/skyped.py')
-rw-r--r--skype/skyped.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/skype/skyped.py b/skype/skyped.py
index 28607a05..254ff67f 100644
--- a/skype/skyped.py
+++ b/skype/skyped.py
@@ -205,7 +205,9 @@ class SkypeApi:
class Options:
def __init__(self):
- self.cfgpath = "/usr/local/etc/skyped/skyped.conf"
+ 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"
self.daemon = True
self.debug = False
self.help = False