[wingide-users] How to run pre-debug shell script?

Wingware Support support at wingware.com
Wed Jun 19 08:42:14 EDT 2013


Graham Wideman wrote:
> I've used Wing IDE on Windows, and am now using Wing IDE on linux (trying out5.0  beta).
>
> I am creating a some small python programs to interact with an existing scientific software package which relies upon a somewhat elaborate environment variable setup.
>
> There is a supplied bash script to set up that environment, so I would like to be able to tell Wing to run that script as the initial step in debugging.
>
> In other words, instead of filling in the Project Properties>  Environment box, I am hoping there is a way to trigger a pre-debug script. (Actually, to source it, since we are interested in the environment variables it exports.)
>
> Is there a way to do this? Thanks,

The best way to do this now is to source your setup script and then run 
Wing from the same command line.  It will inherit the environment for 
use with your code.

Please let me know if this does not help.

Thanks,

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com


More information about the wingide-users mailing list