Esempio n. 1
0
    def resolve_output_to_path(self, ctx, target, bundle):
        # If a directory/url pair is set, always use it for output files
        if self.use_webassets_system_for_output(ctx):
            return Resolver.resolve_output_to_path(self, ctx, target, bundle)

        # Allow targeting blueprint static folders
        directory, rel_path, endpoint = self.split_prefix(ctx, target)
        return path.normpath(path.join(directory, rel_path))
Esempio n. 2
0
    def resolve_output_to_path(self, ctx, target, bundle):
        # If a directory/url pair is set, always use it for output files
        if self.use_webassets_system_for_output(ctx):
            return Resolver.resolve_output_to_path(self, ctx, target, bundle)

        # Allow targeting blueprint static folders
        directory, rel_path, endpoint = self.split_prefix(ctx, target)
        return path.normpath(path.join(directory, rel_path))
Esempio n. 3
0
 def resolve_output_to_path(self, target, bundle):
     if self.env.config.get('directory'):
         return Resolver.resolve_output_to_path(self, target, bundle)
     # Allow targeting blueprint static folders
     directory, rel_path = self.split_prefix(target)
     return path.normpath(path.join(directory, rel_path))
 def resolve_output_to_path(self, target, bundle):
     if self.env.config.get('directory'):
         return Resolver.resolve_output_to_path(self, target, bundle)
     # Allow targeting blueprint static folders
     directory, rel_path = self.split_prefix(target)
     return path.normpath(path.join(directory, rel_path))