Changeset 5dd75b0 in rtems-tools


Ignore:
Timestamp:
May 30, 2019, 10:25:36 AM (3 weeks ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
af9b561
Parents:
9b153bc
git-author:
Chris Johns <chrisj@…> (05/30/19 10:25:36)
git-committer:
Chris Johns <chrisj@…> (06/11/19 01:00:30)
Message:

rtemstoolkit/log: Add info().

Location:
rtemstoolkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/log.py

    r9b153bc r5dd75b0  
    6161#
    6262lock = threading.Lock()
     63
     64def info(args):
     65    s = [' Command Line: %s' % (' '.join(args))]
     66    if hasattr(os, 'uname'):
     67        s += [' Host: %s' % (' '.join(os.uname()))]
     68    else:
     69        h = ' Host: win32-mingw'
     70        if 'HOSTTYPE' in os.environ:
     71            h += ' ' + os.environ['HOSTTYPE']
     72        else:
     73            h += ' i686'
     74        s += [h]
     75    s += [' Python: %s' % (sys.version.replace('\n', ''))]
     76    return s
    6377
    6478def set_default_once(log):
  • rtemstoolkit/options.py

    r9b153bc r5dd75b0  
    509509
    510510    def log_info(self):
    511         log.output(' Command Line: %s' % (' '.join(self.argv)))
    512         log.output(' Python: %s' % (sys.version.replace('\n', '')))
     511        log.output(log.info(self.argv))
    513512
    514513def load(opts):
Note: See TracChangeset for help on using the changeset viewer.