summaryrefslogtreecommitdiff
path: root/AppPkg/Applications/Python/PythonCore.inf
diff options
context:
space:
mode:
authorDaryl McDaniel <edk2-lists@mc2research.org>2015-10-19 21:39:46 +0000
committerdarylm503 <darylm503@Edk2>2015-10-19 21:39:46 +0000
commit47022e82e1e59f59d375dd66847e93cea7b6a771 (patch)
tree0541518cfb1a35a6e1b23d8ffda90a848407cc8d /AppPkg/Applications/Python/PythonCore.inf
parentb7953e264696d1117bdbfe2ef7619d2b654fdd36 (diff)
downloadedk2-47022e82e1e59f59d375dd66847e93cea7b6a771.zip
edk2-47022e82e1e59f59d375dd66847e93cea7b6a771.tar.gz
edk2-47022e82e1e59f59d375dd66847e93cea7b6a771.tar.bz2
AppPkg: Add switch to cause stderr to be aliased to stdout.
Python, as distributed, sends its prompts and other interactive output to stderr, which uses the platforms STDERR device for output. If STDERR output is not visible, it may appear that Python has hung. Several people have reported problems on platforms that don't enable STDERR. These include platforms without a Setup utility and those without Setup options for STDERR. This patch adds a command-line switch, -#, to Python. If this switch is present, stderr will be aliased to stdout. AppPkg/Applications/Python/PyMod-2.7.2/Modules/main.c: New file, modified version of AppPkg/Applications/Python/Python-2.7.2/Modules/main.c. Add the -# option which causes stderr to be aliased to stdout. Add a description of this switch to the Help output. AppPkg/Applications/Python/PythonCore.inf: Reference main.c from PyMod-2.7.2 instead of from Python-2.7.2 so that the modified version is used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel <edk2-lists@mc2research.org> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18649 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'AppPkg/Applications/Python/PythonCore.inf')
-rw-r--r--AppPkg/Applications/Python/PythonCore.inf3
1 files changed, 2 insertions, 1 deletions
diff --git a/AppPkg/Applications/Python/PythonCore.inf b/AppPkg/Applications/Python/PythonCore.inf
index ece8437..94c735d 100644
--- a/AppPkg/Applications/Python/PythonCore.inf
+++ b/AppPkg/Applications/Python/PythonCore.inf
@@ -1,6 +1,7 @@
## @file
# PythonCore.inf
#
+# Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>
# Copyright (c) 2011-2012, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -164,7 +165,7 @@
Python-$(PYTHON_VERSION)/Modules/_functoolsmodule.c
Python-$(PYTHON_VERSION)/Modules/gcmodule.c
Python-$(PYTHON_VERSION)/Modules/getbuildinfo.c
- Python-$(PYTHON_VERSION)/Modules/main.c
+ PyMod-$(PYTHON_VERSION)/Modules/main.c
Python-$(PYTHON_VERSION)/Modules/python.c
# Optional Modules -- See Python/Efi/config.c