Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

        def verify_dir(path, name=None):
    if name:
        name_str = "Cannot set {} directory because t".format(name)
    else:
        name_str = "T"
    msg = "{}he path {} does not exist.".format(name_str, path)
    if not os.path.exists(path):
        raise Exception(msg)
        


src/p/y/pyrouge-0.1.2/pyrouge/Rouge155.py   pyrouge(Download)
from pyrouge.utils import log
from pyrouge.utils.file_utils import DirectoryProcessor
from pyrouge.utils.file_utils import verify_dir
 
 
    def config_file(self, path):
        config_dir, _ = os.path.split(path)
        verify_dir(config_dir, "configuration file")
        self._config_file = path
 
        else:
            config_dir, config_filename = os.path.split(config_file_path)
            verify_dir(config_dir, "configuration file")
        self._config_file = os.path.join(self._config_dir, config_filename)
        Rouge155.write_config_static(
        def fset(self, path):
            verify_dir(path, dir_name)
            setattr(self, private_name, path)
 
        p = property(fget=fget, fset=fset, doc=docstring)