Commits

Anonymous committed bc82b7a

Now simple commandline strings can be used for actions.

Comments (0)

Files changed (1)

 from math import sin, cos, pi
 # And for starting programs
 from subprocess import Popen
+# and parsing a command string into words for Popen
+from shlex import split as split_action
 # Finally some path tools for loading a config file
 from os.path import join, isfile
 # and system independent home folder location
 	# and the circle stays visible.
 	if label.action is not None: 
 	    try: 
-		Popen(label.action)
+		Popen(split_action(label.action))
 		return True
 	    except: 
 		return None