summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/freebsd.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/freebsd.py')
-rw-r--r--rtemstoolkit/freebsd.py14
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()