Hello everyone!!
Does anyone know how to obtain the working directory of an IDEA's project using python?
I tried the code below but it raised an error " 'str' object is not callable"
import win32com.client as win32ComClient
idea = win32ComClient.Dispatch="Idea.IdeaClient")
wd = idea.WorkingDirectory()
jsandoval
Offline
Last seen: 2 years 7 months ago
Joined: 03/01/2021 - 10:48
Here is the code, your second line where you have the idea = isn't correct and the last line, since it is returning an attribute it doesn't need the ()
Thank you!! it worked perfectly