Open markgw opened 6 years ago
By default, we run in interative mode, assuming the user's at a terminal
This switch tells interface components that they can't expect input from a user
This should mean, for example, that we don't display progress bars, whose output looks bad when piped to a file
The parameter can be set using the environment variable PIM_NON_INT to 1 (implemented) or the cmd line switch --non-interactive (not implemented).
NON_INTERACTIVE_MODE = len(os.environ.get("PIM_NON_INT", "")) > 0
Mostly done now.
Still need to add to documentation.
By default, we run in interative mode, assuming the user's at a terminal
This switch tells interface components that they can't expect input from a user
This should mean, for example, that we don't display progress bars, whose output looks bad when piped to a file
The parameter can be set using the environment variable PIM_NON_INT to 1 (implemented) or the cmd line switch --non-interactive (not implemented).
NON_INTERACTIVE_MODE = len(os.environ.get("PIM_NON_INT", "")) > 0