We now provide get_main_server and set_main_server functions. However, they will not actually replace the MAIN_SERVER in previously imported packages' default function arguments. Those need to be refactored into more dynamically accessed arguments (i.e, None as the default value and then a get_main_server call inside if the value is None, or perhaps an additional helper function that simplifies it into a one-liner.
We now provide
get_main_server
andset_main_server
functions. However, they will not actually replace theMAIN_SERVER
in previously imported packages' default function arguments. Those need to be refactored into more dynamically accessed arguments (i.e,None
as the default value and then aget_main_server
call inside if the value isNone
, or perhaps an additional helper function that simplifies it into a one-liner.