pheromone_dispersion.cli module
Module that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice:
When you run python -mpherosensor python will execute
__main__.pyas a script. That means there won’t be anypherosensor.__main__insys.modules.When you import __main__ it will get executed again (as a module) because there’s no
pherosensor.__main__insys.modules.Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
- pheromone_dispersion.cli.main(argv=['/home/docs/checkouts/readthedocs.org/user_builds/pherosensor-toolbox/envs/v0.1.3/lib/python3.12/site-packages/sphinx/__main__.py', '-T', '-b', 'html', '-d', '_build/doctrees', '-D', 'language=en', '.', '/home/docs/checkouts/readthedocs.org/user_builds/pherosensor-toolbox/checkouts/v0.1.3/_readthedocs//html'])[source]
- Parameters:
argv (
list) – List of arguments- Returns:
A return code
- Return type:
int
Does stuff.