no way to set/get environment variables
Closed this issue · 2 comments
sn6uv commented
The EnvSet and EnvGet methods are not implemented.
I tried to implement them, e.g.:
@api.check(1, "set environment variable failed")
def env_set(variable, value=None):
"""
:param filename:
:param work_dir:
:param show_flag:
:return:
"""
if value is None:
ret = AUTO_IT.AU3_EnvSet(LPCWSTR(variable))
else:
ret = AUTO_IT.AU3_EnvSet(LPCWSTR(variable), LPCWSTR(value))
return ret
see b2611d4, but it seems like they're not included in the DLL:
AttributeError: function 'AU3_EnvSet' not found
Unsure on how to move forward with this.
jacexh commented
hi,
AU3_EnvSet
did not offered in AutoItX3.dll
, you could call os.environ
in python to instead of.