diff options
author | Nat <natcl@hotmail.com> | 2007-06-26 21:31:27 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-06-26 21:31:27 (GMT) |
commit | 69fd0fd9f02203e29bdf72abd035250238725c0a (patch) | |
tree | 45d741472404d55c657aa226e3f786e6768fbb8d /TamTam.py | |
parent | b8f61566531b1c2afb2bcfe3d5d777c1b549365b (diff) |
Spawn
Diffstat (limited to 'TamTam.py')
-rwxr-xr-x | TamTam.py | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -163,17 +163,11 @@ class TamTam(Activity): return elif key == 49:#39: S #self.set_mode('synth') - (a,b) = commands.getstatusoutput('/usr/share/activities/TamTam.activity/cnee --record --keyboard --mouse --stop-key h --out-file /home/olpc/test.xnl \&') - print b + os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee', '--record', '--keyboard', '--mouse', '--stop-key', 'h', '--out-file', '/home/olpc/test.xnl') return elif key == 10:#25: W #self.set_mode('welcome') - if os.fork == 0: - pass - else: - (a,b) = commands.getstatusoutput('/usr/share/activities/TamTam.activity/cnee --replay --keyboard --mouse --file /home/olpc/test.xnl \&') - sys.exit(0) - print b + os.spawnlp(os.P_NOWAIT,'/usr/share/activities/TamTam.activity/cnee','/usr/share/activities/TamTam.activity/cnee', '--replay', '--keyboard', '--mouse', '--file', '/home/olpc/test.xnl') return elif key == 53: #X self.destroy() |