from this How to access environment variable values?
i already tried
import os
print(os.environ['HOME'])
it's give me this error
> Traceback (most recent call last):
File "d:/TOD/iot/paint/OStest.py", line 2, in <module>
print(os.environ['HOME'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\os.py", line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'HOME'
PS D:\TOD\iot\paint>
FYI. for A few months ago i got a problem with my Enviroment variables. i think this cause a problem