has-module/README.md

11 lines
383 B
Markdown
Raw Permalink Normal View History

2021-06-17 22:34:18 -07:00
has-module
==========
2021-05-19 16:47:02 -07:00
2021-06-17 22:34:18 -07:00
Simple tool for checking if a python module is installed.
2021-05-19 16:47:02 -07:00
2021-06-17 22:34:18 -07:00
`has-module module_name [version]`
2021-05-19 16:47:02 -07:00
2021-06-17 22:34:18 -07:00
* If the python module named by `$module_name` is not installed, return exit code 1.
* If `$version` is supplied and the installed module's version doesn't match it, return exit code 1.
* Otherwise, the module was successfully imported and the exit code will be 0.