View Single Post
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#4
Originally Posted by attila77 View Post
subprocess.call(["/bin/sh", f])
Thanks, but i already figurred that one out.

Right now i am trying with this two:
Code:
	def open(dialog):
		f = ("/home/daniel/Hämtningar/n900/awoken-extras/test.sh");
		import subprocess
		subprocess.call("/bin/sh " + f, shell=True);

	def dialog(pushButton_2):
		f = ("/home/daniel/Hämtningar/n900/awoken-extras/test.sh");
		from subprocess import Popen
		Popen('/bin/sh ' + f);
I somehow can't "connect" the button click event with the subprocess. When i run it nothing happens. So i think i am doing the "def" string wrong.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums