Subversion Repositories MeX

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
# File: srv_utils.py
# Author: Tomás Vírseda
# License: GPL v3
# Description: Generic functions service
"""


import os
from mex.core.mod_env import GPATH, LPATH, FILE
from mex.core.mod_srv import Service

class MexUtils(Service):
    """
    Missing class docstring (missing-docstring)
    """


    def initialize(self):
        """
        Missing method docstring (missing-docstring)
        """

        self.get_services()


    def get_services(self):
        """
        Missing method docstring (missing-docstring)
        """

        pass


    def get_files_from_dir(self, path):
        fileset = set()
        for r,d,f in os.walk(path):
            for filename in f:
                if not filename.startswith('~'):
                    uri = os.path.join(r, filename)
                    if not os.path.isdir(uri):
                        fileset.add(uri)
        return fileset