How to run a bash script from project explorer ?

115 views
Skip to first unread message

ufechner

unread,
Nov 6, 2012, 6:53:45 AM11/6/12
to spyd...@googlegroups.com
Hello,

I have  the following bash script in my project folder:

#!/bin/bash
cd $HOME/00PythonSoftware/WinchSim
pyside-uic WinchSim.ui -o WinchSim.py


It has the name compile_ui.sh.

I would like to be able to run it from the project explorer with a doubleclick.

But what happens is that it gets opened in gedit.

Is there any possibility to tell spyder to run bash scripts instead of opening them in an editor?

I am using Ubuntu 12.04.1 and spyder 2.1.11.

Best regards:

Uwe Fechner

Tim Michelsen

unread,
Nov 6, 2012, 1:50:32 PM11/6/12
to spyd...@googlegroups.com
> It has the name compile_ui.sh.
>
> I would like to be able to run it from the project explorer with a
> doubleclick.
I think this needs to be changed on the Operating system settings.
Is your script set as executable?

Maybe you use Geany which is more a general purpose IDE for several
languages.

Pierre Raybaut

unread,
Nov 6, 2012, 3:08:05 PM11/6/12
to spyd...@googlegroups.com
Hi,

For now, being a Python development environment, Spyder is only able
to run Python scripts.

Running other language source code is not a planned feature.

Thanks for your interest in Spyder.

Cheers,
-Pierre

2012/11/6 ufechner <uwe.fec...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spyderlib/-/p0b5UUKA8ZgJ.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to
> spyderlib+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.

Uwe Fechner

unread,
Nov 6, 2012, 3:18:13 PM11/6/12
to spyd...@googlegroups.com, Pierre Raybaut
Hello,

I am not happy with this answer.
It would be very easy to implement this feature.
IDE's like Eclipse offer it.

And I only need it to create Python code from an
.ui file.
So this wish is directly related to Python software
development.

I think I will write a feature request in the bug
tracker.

Best regards:

Uwe Fechner

David

unread,
Nov 7, 2012, 3:24:08 AM11/7/12
to spyd...@googlegroups.com, Pierre Raybaut
Uwe,

If you particularly feel that spyder needs such functionality, then you could write a plugin to implement it.


I think the profiler plugin would be the closest to what you need, as it registers a toolbar button and keyboard shortcut to perform an action on the current file in the editor window.

regards
David
Reply all
Reply to author
Forward
0 new messages