setup

After initial setup, configure autopilot: create an autopilot directory and a prefs.json file

Functions:

make_dir(adir[, permissions])

Make a directory if it doesn't exist and set its permissions to 0777

make_alias(launch_script[, bash_profile])

Make an alias so that calling autopilot calls autopilot_dir/launch_autopilot.sh

parse_manual_prefs(manual_prefs)

parse_args()

locate_user_dir(args)

run_form(prefs)

make_launch_script(prefs[, prefs_fn, ...])

make_systemd(prefs, launch_file)

results_string(env_results, config_msgs, ...)

make_ectopic_dirnames(basedir)

main()

make_dir(adir: pathlib.Path, permissions: int = 511)[source]

Make a directory if it doesn’t exist and set its permissions to 0777

Parameters
  • adir (str) – Path to the directory

  • permissions (int) – an octal integer used to set directory permissions (default 0o777)

make_alias(launch_script: pathlib.Path, bash_profile: Optional[str] = None) Tuple[bool, str][source]

Make an alias so that calling autopilot calls autopilot_dir/launch_autopilot.sh

Parameters
  • launch_script (str) – the path to the autopilot launch script to be aliased

  • bash_profile (str, None) – Optional, location of shell profile to edit. if None, use .bashrc then .bash_profile if they exist

parse_manual_prefs(manual_prefs: List[str]) dict[source]
parse_args()[source]
locate_user_dir(args) pathlib.Path[source]
run_form(prefs: dict) Tuple[dict, List[str]][source]
make_launch_script(prefs: dict, prefs_fn=None, launch_file=None, permissions: int = 509) pathlib.Path[source]
make_systemd(prefs: dict, launch_file: pathlib.Path) Tuple[bool, str][source]
results_string(env_results: dict, config_msgs: List[str], error_msgs: List[str], prefs_fn: str, prefs) str[source]
make_ectopic_dirnames(basedir: pathlib.Path) dict[source]
main()[source]