Package schrodinger :: Package maestro :: Module commands
[hide private]
[frames] | no frames]

Module commands

Functions [hide private]
 
temporary_preference(command, preference, value)
Set a maestro command preference to a temporary value, then after executing other code, restore the original value for the command preference.
Variables [hide private]
  maestro = get_maestro()
Function Details [hide private]

temporary_preference(command, preference, value)

 

Set a maestro command preference to a temporary value, then after executing other code, restore the original value for the command preference.

Parameters:
  • command (str) - Command used to set temporary value
  • preference (str) - Preference to temporarily set
  • value (str) - Temporary value
Decorators:
  • @contextmanager