from __future__ import absolute_import, division, print_function, unicode_literals

from os import path
import sh
from nib import Processor, resource

@resource('.less')
class LessCSSProcessor(Processor):
    def resource(self, resource):
        filepath = path.join(self.options['resource_path'],
                             resource.path + resource.extension)
        resource.content = bytearray(str(sh.lessc(filepath)), 'utf-8')
        resource.extension = '.css'

        return resource

from __future__ import absolute_import, division, print_function, unicode_literals

from os import path
import sh
from nib import Processor, resource

@resource('.less')
class LessCSSProcessor(Processor):
    def resource(self, resource):
        filepath = path.join(self.options['resource_path'],
                             resource.path + resource.extension)
        print("Processing: ", filepath)
        resource.content = bytearray(str(sh.lessc(filepath)), 'utf-8')
        resource.extension = '.css'

        return resource

Print out file being processed, need to do to other modules, add -v flag
Print out file being processed, need to do to other modules, add -v flag

  from __future__ import absolute_import, division, print_function, unicode_literals
  
  from os import path
  import sh
  from nib import Processor, resource
  
  @resource('.less')
  class LessCSSProcessor(Processor):
      def resource(self, resource):
          filepath = path.join(self.options['resource_path'],
                               resource.path + resource.extension)
+         print("Processing: ", filepath)
          resource.content = bytearray(str(sh.lessc(filepath)), 'utf-8')
          resource.extension = '.css'
  
          return resource
  
Print out file being processed, need to do to other modules, add -v flag
## Code Before:
from __future__ import absolute_import, division, print_function, unicode_literals

from os import path
import sh
from nib import Processor, resource

@resource('.less')
class LessCSSProcessor(Processor):
    def resource(self, resource):
        filepath = path.join(self.options['resource_path'],
                             resource.path + resource.extension)
        resource.content = bytearray(str(sh.lessc(filepath)), 'utf-8')
        resource.extension = '.css'

        return resource

## Instruction:
Print out file being processed, need to do to other modules, add -v flag
## Code After:
from __future__ import absolute_import, division, print_function, unicode_literals

from os import path
import sh
from nib import Processor, resource

@resource('.less')
class LessCSSProcessor(Processor):
    def resource(self, resource):
        filepath = path.join(self.options['resource_path'],
                             resource.path + resource.extension)
        print("Processing: ", filepath)
        resource.content = bytearray(str(sh.lessc(filepath)), 'utf-8')
        resource.extension = '.css'

        return resource
