Komodo is a lightweight and great programming IDE. Recently, I use the IDE to work on python. However, I got problem because I need to run the python from some virtual environments. To make it happen, this is what I did:
1. Create a shell script to run the virtual environment. For example we name the shell script runpyenv.sh, we may run the script with runpyenv.sh mycode.py. The code $1 will take the first input argument after the shell script name.
1. Create a shell script to run the virtual environment. For example we name the shell script runpyenv.sh, we may run the script with runpyenv.sh mycode.py. The code $1 will take the first input argument after the shell script name.
source ~/arwanenv/bin/activate2. Now make the shell script to be executable
python $1
sudo chmod +x runpyenv.sh3. Now you put the shell script inside the command of your Komodo. It will be better if you make the file parameter to be automatic. Here is the command in your Komodo
~/runpyenv.sh %FEnjoy. Share your ideas in the comment if you have better idea.
Comments