## @file\r
# Utility functions and classes for BaseTools unit tests\r
#\r
-# Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
PythonSourceDir = os.path.join(BaseToolsDir, 'Source', 'Python')\r
TestTempDir = os.path.join(TestsDir, 'TestTempDir')\r
\r
+if PythonSourceDir not in sys.path:\r
+ #\r
+ # Allow unit tests to import BaseTools python modules. This is very useful\r
+ # for writing unit tests.\r
+ #\r
+ sys.path.append(PythonSourceDir)\r
+\r
def MakeTheTestSuite(localItems):\r
tests = []\r
for name, item in localItems.iteritems():\r