Changes in tools/ew.py [ae8d7b0:e4c8e3cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
rae8d7b0 re4c8e3cf 56 56 return emulators[platform][machine][processor] 57 57 58 def termemu_detect(): 59 for termemu in ['xfce4-terminal', 'xterm']: 60 try: 61 subprocess.check_output('which ' + termemu, shell = True) 62 return termemu 63 except: 64 pass 65 58 66 def run_in_console(cmd, title): 59 cmdline = 'xterm -T ' + '"' + title + '"' + ' -e ' + cmd67 cmdline = termemu_detect() + ' -T ' + '"' + title + '"' + ' -e \'' + cmd + '\'' 60 68 print(cmdline) 61 69 if not is_override('dryrun'): 62 subprocess.call(cmdline, shell = True) ;70 subprocess.call(cmdline, shell = True) 63 71 64 72 def get_host_native_width():
Note:
See TracChangeset
for help on using the changeset viewer.