Changeset f9d0a86 in mainline for tools/ew.py
- Timestamp:
- 2017-11-14T12:24:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cad776
- Parents:
- 887c9de (diff), d2d142a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
- git-committer:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r887c9de rf9d0a86 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 ' + cmd 67 ecmd = cmd.replace('"', '\\"') 68 cmdline = termemu_detect() + ' -T ' + '"' + title + '"' + ' -e "' + ecmd + '"' 60 69 print(cmdline) 61 70 if not is_override('dryrun'): 62 subprocess.call(cmdline, shell = True) ;71 subprocess.call(cmdline, shell = True) 63 72 64 73 def get_host_native_width():
Note:
See TracChangeset
for help on using the changeset viewer.