diff --git a/win_toolchain/package_from_installed.py b/win_toolchain/package_from_installed.py index 6fcfba6357..9c4b72b485 100644 --- a/win_toolchain/package_from_installed.py +++ b/win_toolchain/package_from_installed.py @@ -60,9 +60,10 @@ def GetVSPath(): def ExpandWildcards(root, sub_dir): # normpath is needed to change '/' to '\\' characters. - matches = glob.glob(os.path.normpath(os.path.join(root, sub_dir))) + path = os.path.normpath(os.path.join(root, sub_dir)) + matches = glob.glob(path) if len(matches) != 1: - raise Exception('%s had %d matches - should be one' % (full, len(matches))) + raise Exception('%s had %d matches - should be one' % (path, len(matches))) return matches[0]