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

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

        def get_destination_filepath(source):
    root, template_name = os.path.split(source)

    # main extension
    destination_name, base_ext = os.path.splitext(template_name)

    while os.path.extsep in destination_name:
        # remove .template extension for files like file.template.c
        destination_name = os.path.splitext(destination_name)[0]
    return os.path.join(root, destination_name + base_ext)
        


src/p/y/PyWavelets-0.2.2/util/commands.py   PyWavelets(Download)
    def validate_templates_expanded(self):
        for template_file in self._templates:
            destination_file = templating.get_destination_filepath(
                template_file)