Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/set_preferences_autoload.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.11 ChIPS v1

set_preference_autoload

Context: preference

Synopsis

Automatically loads the chips.rc file into preferences when the ChIPS server starts up.

Syntax

set_preference_autoload(toggle)

Description

The function arguments.

Argument Description
toggle A boolean controlling whether the preferences are loaded when the server starts up.

The set_preference_autoload command tell ChIPS that when the server is started it should load the user's default preferences.

This is similar to calling load_preferences without any arguments. The difference is that load_preferences will start a chips server (if necessary) and load the preferences, while set_preference_autoload does not cause a server to be created. If a server already exists, this command does nothing.


Example

chips> set_preference_autoload(True)
chips> connect()

Preferences will be loaded after the connection to the server is established.


Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

concepts
preferences, setget
preference
get_preference, get_preferences, load_preferences, save_preferences, set_preference, set_preferences
utilities
set_current