Skip to content

Incorrect example in archinstall/docs/examples/python.rst  #1603

Open
@speshuric

Description

@speshuric

Below the code from archinstall/docs/examples/python.rst

import archinstall

all_drives = archinstall.list_drives()
print(all_drives)

Now archinstall does not contain list_drives() function so this code doesn't work anymore. Personally, I currently use the following code to test import of archinstall:

import archinstall

archinstall.do_countdown()

This is simpler and clearer than list drives. But if we need to keep current behavior it can be:

import archinstall

all_drives = archinstall.all_blockdevices(partitions=False)
print(all_drives.keys())

I easily can fix it in the trivial PR but what should I prefer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions