Changeset 54257ba in mainline for tools/config.py
- Timestamp:
- 2005-12-07T16:59:37Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 940cac0
- Parents:
- 45ab770
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r45ab770 r54257ba 310 310 if cmd == 'saveas': 311 311 outf.write('%s = %s\n' % (args[1],defaults[args[0]])) 312 312 elif cmd == 'shellcmd': 313 varname = args[0] 314 args = args[1:] 315 for i,arg in enumerate(args): 316 if arg.startswith('$'): 317 args[i] = defaults[arg[1:]] 318 319 subc = os.popen(' '.join(args),'r') 320 data = subc.read().strip() 321 if subc.close(): 322 raise RuntimeError('Error running: %s' % ' '.join(args)) 323 outf.write('%s = %s\n' % (varname,data)) 313 324 continue 314 325
Note:
See TracChangeset
for help on using the changeset viewer.