## @file
# Utility functions and classes for BaseTools unit tests
#
-# Copyright (c) 2008, Intel Corporation
+# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
#
-# All rights reserved. This program and the accompanying materials
+# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
def GetBaseToolsPath():
if sys.platform in ('win32', 'win64'):
return os.path.join(BaseToolsDir, 'Bin', sys.platform.title())
+ elif sys.platform in ('cygwin'):
+ uname = os.popen('uname -sm').read().strip()
+ for char in (' ', '/'):
+ uname = uname.replace(char, '-')
+ return os.path.join(BaseToolsDir, 'Bin', uname)
else:
uname = os.popen('uname -sm').read().strip()
for char in (' ', '/'):