Discussion:
[edk2] Python without EFI SHELL
S.Vieira
2015-05-28 18:07:21 UTC
Permalink
Hi everyone.



Is possible run a app done in python withou SHELL Environment ?

Just do a FLASH DRIVE bootable and call a app with python?!


I want do a GUI with python, but I don't have dependence with EFI SHELL

Thx


S.Vieria


------------------------------------------------------------------------------
Blibbet
2015-05-28 18:40:27 UTC
Permalink
Post by S.Vieira
Is possible run a app done in python withou SHELL Environment ?
Just do a FLASH DRIVE bootable and call a app with python?!
I want do a GUI with python, but I don't have dependence with EFI SHELL
Most UEFI Apps are UEFI Shell Apps. The shell provides additional libs,
to get things like file I/O. Without those libs, you only get
stdio/stdio/stderr. In UEFI, the UEFI's Shell is the main way to invoke
things. If you're not a shell app, it's more painful to write a pre-OS
app. You'd likely have to re-implement many of the features in the shell
libs back into the modified Python patch, I'd guess. Is there a reason
why you you'd be willing to deal with that pain, just to not use the
shell? I just don't understand what the concern is, I guess.

Does UEFI Python have a GUI -- or even a curses-like module, like
edit/hexedit -- library for UEFI?



------------------------------------------------------------------------------
S.Vieira
2015-05-28 18:46:25 UTC
Permalink
Sorry but you are wrong.

I did a app wich handle files just using UEFI features without EFI SHEL..

And I see a python library to UEFI ..but use EFI SHELL..

whatever
Thx






------------------------------------------------------------------------------
Mcdaniel, Daryl
2015-06-01 21:27:33 UTC
Permalink
The UEFI port of Python uses the libraries provided by the StdLib package to perform the "os" functions that Python expects.
The current version of StdLib is a "hosted" implementation that depends upon the UEFI Shell for file system functionality as well as other functions.

A "standalone" version of StdLib, which has no dependencies upon the Shell, is being worked on.

Due to the lack of a command line in the "standalone" version, a special version of Python would have to be built that statically specified any command line options as well as the initial .py (or .pyc) file to execute.

The primitives required to support a GUI are not provided by Python, StdLib, or UEFI. Any GUI would have to provide all primitives.
The Nano-X package, www.microwindows.org, is easy to port to UEFI and provides many of the needed primitives.
Even then, there would be a lot of work needed to port any of the existing GUI libraries to work with Python in the UEFI environment.

Daryl McDaniel

-----Original Message-----
From: S.Vieira [mailto:***@outlook.com]
Sent: Thursday, May 28, 2015 11:46 AM
To: edk2-***@lists.sourceforge.net
Subject: Re: [edk2] Python without EFI SHELL

Sorry but you are wrong.

I did a app wich handle files just using UEFI features without EFI SHEL..

And I see a python library to UEFI ..but use EFI SHELL..

whatever
Thx

Loading...