def main():
    """
    Create new virtual environments and install pip requirements there.
    """
    # Change directory to current
    os.chdir(DIRNAME)

    # Read configuration values from ``bootstrap.cfg`` file if possible
    read_config('bootstrap.cfg')

    # Search over current directory files
    filenames = sorted(os.listdir(DIRNAME))
    env = None

    for filename in filenames:
        if not REQUIREMENTS_REGEXP.match(filename):
            continue

        if env is not None:
            print('-' * 79) % ('\n%s\n')

        # Initialize environment
        env = Environment(filename=filename)

        # Try to create new virtual environment
        env.create()

        # Install all requirements to this virtual environment if possible
        env.install_requirements()
dataset/ETHPy150Open playpauseandstop/tddspry/tests/bootstrap.py/main/swapped operands of `%`