mathlibtools/lib.py
def make_all(self) -> None:
        """Creates all.lean importing everything from the project"""

        with (self.src_directory/'all.lean').open('w') as all_file:
            for path in self.src_directory.glob('**/*.lean'):
                rel = path.relative_to(self.src_directory).with_suffix('')
                if rel == Path('all'):
                    continue
                all_file.write('import ' + ".".join(map(escape_identifier, rel.parts)) + '\n')
Creates all.lean importing everything from the project
Creates all.lean importing everything from the project
Creates all . lean importing everything from the project
def make_all(self) -> None:
        with (self.src_directory/'all.lean').open('w') as all_file:
            for path in self.src_directory.glob('**/*.lean'):
                rel = path.relative_to(self.src_directory).with_suffix('')
                if rel == Path('all'):
                    continue
                all_file.write('import ' + ".".join(map(escape_identifier, rel.parts)) + '\n')
def make_all ( self ) -> None : with ( self . src_directory / 'all.lean' ) . open ( 'w' ) as all_file : for path in self . src_directory . glob ( '**/*.lean' ) : rel = path . relative_to ( self . src_directory ) . with_suffix ( '' ) if rel == Path ( 'all' ) : continue all_file . write ( 'import ' + "." . join ( map ( escape_identifier , rel . parts ) ) + '\n' )
Creates all.lean importing everything from the project
Creates all . lean importing everything from the project
"""Creates all.lean importing everything from the project"""
self