I have a working Pycharm project that uses a virtual environment. Now I need to run from this same project a preexistent Python script.
For reference, this second script was created with gnuradio and works in Ubuntu 20.04 shell with no specific call to any virtual environment. Actually, it should use the default /usr/bin/env.
I tried different approaches: For instance, If I call this script from shell as >> python3 preexistent_script.py, it works fine. Also, if I create a dedicated Pycharm project and properly configure the interpreter and paths, this also works.
The issue is that, if I add those interpreter settings to the original Pycharm project, there is a conflict with the dependecies, as the original project should use a venv and the preexistent_script.py should use the default env.
I also tried using subprocess to call that preexistent_script.py, however the venv settings still seem to be an issue.
My experience is limited here. So I am not sure if my attempts were 100% correct. I would appreciate your help on how to solve this.