How to set environment variables in Python?

前端 未结 11 1983
情话喂你
情话喂你 2020-11-22 04:00

I need to set some environment variables in the Python script and I want all the other scripts that are called from Python to see the environment variables\' set.

If

11条回答
  •  庸人自扰
    2020-11-22 04:36

    What about os.environ["DEBUSSY"] = '1'? Environment variables are always strings.

提交回复
热议问题