Skip to content
Snippets Groups Projects
Commit cd6662d8 authored by Vincent Delbar's avatar Vincent Delbar
Browse files

ENH: prompt messages

parent 7b781eda
No related branches found
No related tags found
2 merge requests!108Release 2.0.0,!98Add function for interactive OTB installation
Pipeline #186622 canceled
......@@ -13,10 +13,9 @@ from shutil import which
def interactive_config():
"""Prompt user to configure installation variables."""
version = input("OTB version to download (default is latest): ")
path = input(
"Parent directory for installation (default is <user_dir>/Applications/): "
)
version = input("Choose a version to download (default is latest): ")
default_dir = f"<user_dir>{os.path.sep}Applications{os.path.sep}"
path = input(f"Parent directory for installation (default is {default_dir}): ")
env = input("Permanently change user's environment variables ? (y/n): ") == "y"
return version, path, env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment