diff options
author | Chris Johns <chrisj@rtems.org> | 2016-03-03 16:46:18 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-03-03 16:53:39 +1100 |
commit | b0fa2ae9981b0ccf6a66cb8df2241caa5038eb36 (patch) | |
tree | d4f7f225cd35334ff18c3189bf1cdefa0d3335b4 /rtemstoolkit/freebsd.py | |
parent | 0e5d89d9469fb755402cbabc09280557c7e01fcc (diff) |
Update rtems-tool to support Python 2 and 3.
Add solaris and netbsd.
Close #2619.
Diffstat (limited to 'rtemstoolkit/freebsd.py')
-rw-r--r-- | rtemstoolkit/freebsd.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/rtemstoolkit/freebsd.py b/rtemstoolkit/freebsd.py index 11a827f..499d7dd 100644 --- a/rtemstoolkit/freebsd.py +++ b/rtemstoolkit/freebsd.py @@ -1,6 +1,6 @@ # # RTEMS Tools Project (http://www.rtems.org/) -# Copyright 2010-2014 Chris Johns (chrisj@rtems.org) +# Copyright 2010-2016 Chris Johns (chrisj@rtems.org) # All rights reserved. # # This file is part of the RTEMS Tools package in 'rtems-tools'. @@ -36,8 +36,16 @@ import pprint import os -import check -import execute +# +# Support to handle use in a package and as a unit test. +# If there is a better way to let us know. +# +try: + from . import check + from . import execute +except (ValueError, SystemError): + import check + import execute def load(): uname = os.uname() |