I am using Liquibase (http://www.liquibase.org) to try and diff two databases. Liquibase is installed and running fine from CLI, however when I try to fun the same command from Python 3.7 using subprocess and shlex i can FileNotFoundError: [Errno 2] No such file or directory: 'liquibase': 'liquibase'
When I add subprocess.call('pwd')
to Python script, I get the same directory as when I am executing the command from terminal. Liquibase install directory is added to my system path when do I echo $PATH, my understanding is that both the CLI and the Python execution are using the same environment. So I don't understand what is the difference in execution?
UPDATE: this seems to be an issue related to PyCharm. I tried executing from VS Code and there were no errors. I am using PyCharm Professional. Does anyone have an idea of what is wrong with my setting in PyCharm?