MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / set

Method set

gui/env_manager.py:356–370  ·  view source on GitHub ↗

Set a value in the env. Args: key: Environment variable name value: Value to set (will be converted to string)

(self, key: str, value: Any)

Source from the content-addressed store, hash-verified

354 return self._values.get(key)
355
356 def set(self, key: str, value: Any) -> None:
357 """
358 Set a value in the env.
359
360 Args:
361 key: Environment variable name
362 value: Value to set (will be converted to string)
363 """
364 # Convert boolean to lowercase string
365 if isinstance(value, bool):
366 str_value = "true" if value else "false"
367 else:
368 str_value = str(value)
369
370 self._values[key] = str_value
371
372 def is_dirty(self) -> bool:
373 """Check if any values have been modified since last load/save."""

Callers 15

reset_to_defaultsMethod · 0.95
_load_accountsMethod · 0.80
_account_selectedMethod · 0.80
_reset_configMethod · 0.80
_start_internalMethod · 0.80
_service_endedMethod · 0.80
_stopMethod · 0.80
signal_handlerFunction · 0.80
launch_camoufox.pyFile · 0.80
perform_auth_rotationFunction · 0.80

Calls

no outgoing calls