Toolbox: launch IDE after setting custom environment

Answered

Hello,

Many of my Python and C++ projects use ROS (http://www.ros.org). Running and debugging code that uses ROS requires that a bunch of environment variables be set. I currently accomplish this by starting Pycharm (or CLion) via a shell script like this one:

#!/bin/bash
# Activate the ROS environment for our project, then kick off pycharm.

PYCHARM_DIR=pycharm-2017.3.2
source ros_env.sh && /opt/${PYCHARM_DIR}/bin/pycharm.sh &

where ros_env.sh sets a bunch of environment vars and activates a virtualenv. I update this script at each new release of Pycharm, which is kind of tedious but works.

Toolbox looks neat, and I'd love to use it, but I don't see a way to do this sort of thing via Toolbox.

Any suggestions are greatly appreciated.

 

Rick

0
1 comment

Hi Waitingfortheelectrician! Unfortunately, it's impossible to configure environment variables for IDE in Toolbox, please vote for a dedicated feature request: ALL-977. I wonder doesn't setting environment variables in Run Configuration work for you?

0

Please sign in to leave a comment.