so my situation is this: I already have a PyCharm project which does some kind of analysis for Android Studio projects, and uses downloaded open source tools which have to be called from Terminal. I have a main class script.py which uses several subprocess.Popen commands (basically executes commands in Terminal). So I actually have 2 questions:
1. Can you create a plugin for Android Studio which utilises that PyCharm project? For example with Jython acting as a glue between my plugin ToolWindow (commonly implemented with Java files) and the script.py class, which is called from ToolWindow. In that case PyCharm project would be a module I guess.
2. Is it at all possible to run Terminal commands from my ToolWindow which use some resources from my plugin? If number 1 is impossible, I could write something similar to script.py using Java, but then I have to execute commands through Terminal.