Skip to content

Commit da7cbf2

Browse files
authored
adding require explanation to guide
1 parent 65f6a10 commit da7cbf2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ If the script exits with a non-zero code, an error will be thrown.
3838

3939
Note the use of imports! If you're not using typescript ಠ_ಠ you can [still get imports to work with this guide](https://github.com/extrabacon/python-shell/issues/148#issuecomment-419120209).
4040

41+
Or you can use require like so:
42+
```javascript
43+
let {PythonShell} = require('python-shell')
44+
```
45+
4146
### Running a Python script:
4247

4348
```typescript

0 commit comments

Comments
 (0)