Skip to content

Commit

Permalink
Fix #422: Correct loadedPackage -> loadedPackages (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed May 16, 2019
1 parent 6ca7c11 commit 8f675bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api_reference.md
Expand Up @@ -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)
Expand Down

0 comments on commit 8f675bf

Please sign in to comment.