Ben,

Python on UEFI does not support popen() nor the subprocess or threading 
modules.  The low-level support for that is not there.

Also, Python (by design) sends all interactive prompts and error messages to 
stderr.
On many platforms, the UEFI console's stderr stream is disabled.  Under 
Nt32Pkg, it is disabled and cannot be enabled.
In setup, under console options, you should be able to enable stderr to the 
console, serial, or both.  If you do that then you will be able to see the 
missing output.

Cheers,
Daryl McDaniel

"If you want to kill any idea in the world, get a committee working on it"
-- Charles Kettering

From: Ben Schroeder [mailto:[email protected]]
Sent: Wednesday, March 26, 2014 2:41 AM
To: [email protected]
Subject: [edk2] python on efi

Hi all,

I have been trying to work with python on the EFI Shell 2.30.
I followed instructions from AppPkg/Applications/Python/PythonReadMe.txt for 
setting up the environment.
I have been unable to use popen() function.
Neither os.popen() nor subprocess.open() seem to work.

Furthermore, I do not see any error messages when I work through the command 
line python on the EFI Shell, like I would on my local linux system.
So it's hard to locate errors.

I have had success with os.system() command for executing shell commands, but 
os.popen() does not seem to work.
My goal is to redirect output into a variable so I can parse it.

Thanks,
Ben S.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to