I am trying to set working directory through IronPython. Its basically for ANSYS Workbench. I am getting the directory path from excel and i am storing it in a variable in IronPython.
dirpath = worksheet.range["E25"].value
and I am giving this variable value as input path to AbsUserPathName
and chdir
commands.
dir = AbsUserPathName(dirpath)
os.chdir(dirpath)
But none of it is working, it gives error as expected str, got _comObject
Any help is appreciated.