Changeset 1b48afb for skype/skyped.py


Ignore:
Timestamp:
2009-04-29T17:24:18Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
c9348c4
Parents:
b9f2894
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    rb9f2894 r1b48afb  
    206206class Options:
    207207        def __init__(self):
    208                 self.cfgpath = "/usr/local/etc/skyped/skyped.conf"
     208                self.cfgpath = os.path.join(os.environ['HOME'], ".skyped", "skyped.conf")
     209                if not os.path.exists(self.cfgpath):
     210                        self.cfgpath = "/usr/local/etc/skyped/skyped.conf"
    209211                self.daemon = True
    210212                self.debug = False
Note: See TracChangeset for help on using the changeset viewer.