[tuxdroid-svn] r319 - software/tuxgi/trunk
Status: Beta
Brought to you by:
ks156
From: doegox <c2m...@c2...> - 2007-05-12 18:00:17
|
Author: doegox Date: 2007-05-12 20:00:13 +0200 (Sat, 12 May 2007) New Revision: 319 Modified: software/tuxgi/trunk/tuxgi.py Log: Use ipython for the shell if available Modified: software/tuxgi/trunk/tuxgi.py =================================================================== --- software/tuxgi/trunk/tuxgi.py 2007-05-12 12:08:09 UTC (rev 318) +++ software/tuxgi/trunk/tuxgi.py 2007-05-12 18:00:13 UTC (rev 319) @@ -65,10 +65,15 @@ ('xterm', '-e'), # X ] # list of tuple instead of a dictionary as the order matters +if not os.popen('type ipython').close(): + py_cmd = 'ipython' +else: + py_cmd = 'python' + for term in terminal_shells: if not os.popen('type %s'%term[0]).close(): - xterm_cmd = '%s %s python -i /opt/tuxdroid/api/python/tux.py' \ - % (term[0], term[1]) + xterm_cmd = '%s %s %s -i /opt/tuxdroid/api/python/tux.py' \ + % (term[0], term[1], py_cmd) break #============================================================================== # Main window class |