def importcustom(self, path):
        ''' Import services from a myservices directory.
        '''
        if not path or len(path) == 0:
            return
        if not os.path.isdir(path):
            self.session.warn("invalid custom service directory specified" \
                              ": %s" % path)
            return
        try:
            parentdir, childdir = os.path.split(path)
            if self._invalid_custom_names in childdir:
                raise ValueError, "use a unique custom services dir name, " \
                        "not '%s'" % childdir
            if not parentdir in sys.path:
                sys.path.append(parentdir)
            exec("from %s import *" % childdir)
        except Exception, e:
            self.session.warn("error importing custom services from " \
                "%s:\n%s" % (path, e))
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/CoreServices.importcustom/swapped operands of `in`