(self, key, default=None)
return fn
Reads filename from config.

        In addition to reading string value, expands ~ to user directory.
Reads filename from config.
Reads filename from config .
def getfile(self, key, default=None):
        """Reads filename from config.

        In addition to reading string value, expands ~ to user directory.
        """
        fn = self.get(key, default)
        if fn == "" or fn == "-":
            return fn
        # simulate that the cwd is script location
        #path = os.path.dirname(sys.argv[0])
        #  seems bad idea, cwd should be cwd

        fn = os.path.expanduser(fn)

        return fn
def getfile ( self , key , default = None ) : fn = self . get ( key , default ) if fn == "" or fn == "-" : return fn # simulate that the cwd is script location #path = os.path.dirname(sys.argv[0]) #  seems bad idea, cwd should be cwd fn = os . path . expanduser ( fn ) return fn