'register files with observer
Arguments:
observer (watchdog.observers.Observer): sass file observer
directories (list): list of directories to be register for sass watcher.'

def register(self, observer, directories):

    for dirname in directories:
        paths = []
        if ('*' in dirname):
            paths.extend(glob.glob(dirname))
        else:
            paths.append(dirname)
        for dirname in paths:
            observer.schedule(self, dirname, recursive=True)
