Public feed #887512

Anonymous

public text v1 · immutable
Raw Edit
·published 2008-02-01 11:19 UTC
rendered paste body
    def execute( self, path ):
        if os.path.exists( os.path.join(path, "CMakeLists.txt") ):
            fileptr = file( os.path.join(path, "CMakeLists.txt"), 'r' )
            for line in fileptr:
                if not line.lower().find('add_subdirectory') == -1:
                    print "subdirectory: ", line
        else:
            return -1