~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to extra/cpplint.py

  • Committer: Monty Taylor
  • Date: 2009-10-15 16:57:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20091015165706-8shu67fn5xaa9btu
Fied check_include_guards for distcheck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
 
555
555
      root_dir = os.path.dirname(fullname)
556
556
      while (root_dir != os.path.dirname(root_dir) and
557
 
             not os.path.exists(os.path.join(root_dir, ".bzr"))):
 
557
             not (os.path.exists(os.path.join(root_dir, ".bzr"))
 
558
                  or
 
559
                  os.path.exists(os.path.join(root_dir, "_build")))):
558
560
        root_dir = os.path.dirname(root_dir)
559
 
        if os.path.exists(os.path.join(root_dir, ".bzr")):
 
561
        if (os.path.exists(os.path.join(root_dir, ".bzr")) or
 
562
            os.path.exists(os.path.join(root_dir, "_build"))):
560
563
          prefix = os.path.commonprefix([root_dir, project_dir])
561
564
          return fullname[len(prefix) + 1:]
562
565