It is based off the same way that it is used in copy_assets.py, I am using
it to check if as I am traversing the theme chain and the user sass/less
directory in the root of the site that we have not already found a file
with the same name, which avoids the duplicate target exception from doit


On Sun, Dec 8, 2013 at 3:18 AM, Chris ¡°Kwpolska¡± Warrick <
notifications@github.com> wrote:

> In nikola/plugins/task/build_less.py:
>
> >          try:
> >              with codecs.open(targets_path, "rb", "utf-8") as inf:
> >                  targets = [x.strip() for x in inf.readlines()]
> >          except Exception:
> >              targets = []
> >
> > +        for task in utils.copy_tree(self.sources_folder, os.path.join(kw['cache_folder'], self.sources_folder)):
> > +            if task['name'] in tasks:
> > +                continue
> > +            task['basename'] = 'prepare_less_sources'
> > +            tasks[task['name']] = task
>
> how exactly do you use the tasks dict?
>
> ¡ª
> Reply to this email directly or view it on GitHub<https://github.com/getnikola/nikola/pull/944/files#r8184348>
> .
>



-- 
Eric Meaney
ermeaney@gmail.com
¾ý×ÓÎñ±¾
(It is upon the Trunk that a gentleman works.)
  --Confucius