Fix #422: Correct loadedPackage -> loadedPackages (#426)

Cc: @PythonLinks
This commit is contained in:
Michael Droettboom 2019-05-16 10:03:34 -04:00 committed by GitHub
parent 6ca7c116c2
commit 8f675bf063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -79,12 +79,12 @@ The package needs to be imported from Python before it can be used.
Loading is asynchronous, therefore, this returns a `Promise`.
### pyodide.loadedPackage
### pyodide.loadedPackages
`Array` with loaded packages.
Use `Object.keys(pyodide.loadedPackage)` to access the names of the
loaded packages, and `pyodide.loadedPackage[package_name]` to access
Use `Object.keys(pyodide.loadedPackages)` to access the names of the
loaded packages, and `pyodide.loadedPackages[package_name]` to access
install location for a particular `package_name`.
### pyodide.pyimport(name)