summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/windows.py')
-rw-r--r--rtemstoolkit/windows.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/rtemstoolkit/windows.py b/rtemstoolkit/windows.py
index be4e1f6..2c08258 100644
--- a/rtemstoolkit/windows.py
+++ b/rtemstoolkit/windows.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'.
@@ -32,11 +32,19 @@
# Windows specific support and overrides.
#
-import error
import pprint
import os
-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 error
+ from . import execute
+except (ValueError, SystemError):
+ import error
+ import execute
def load():
# Default to the native Windows Python.