-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend chipsec_main search to both py and pyc #1289
Conversation
Can the logic be modified to explicitly match only py and pyc files. |
Of course. I'll do that.
I'm far from being Python expert, but should it be extended to both py, pyc and pyo?
On Monday, October 25, 2021, 07:51:51 PM GMT+3, BrentHoltsclaw ***@***.***> wrote:
Can the logic be modified to explicitly match only py and pyc files.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Hi
I haven't got any reply to my question.Should it be extended to both py, pyc and pyo?
Thanks,Tal
On Monday, October 25, 2021, 07:51:51 PM GMT+3, BrentHoltsclaw ***@***.***> wrote:
Can the logic be modified to explicitly match only py and pyc files.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Our normal execution of chipsec does not produce .pyo files, so I don't think it's necessary to include them. |
search for py and pyc modules explicitly instead of searching for py*
@npmitche How can I regenerate the ERROR described here #1357
On Friday, January 28, 2022, 08:50:40 PM GMT+2, Nathaniel Mitchell ***@***.***> wrote:
@tallu if you want to open a new PR around this that fixes the issue mentioned in #1357, please do!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @tallu, simply running chipsec_main.py twice, the first time builds the extra .pyc files, then on the subsequent runs it sees them and errors out. |
Hi
What does it mean to strip out pyc files?How do you do that?
Deleting __pycache__ folders is a workaround for this problem.I've added the following lines at the begining of chipsec_main.py and it does the trick...
import pathlibimport shutil[shutil.rmtree(p) for p in pathlib.Path('.').rglob('__pycache__')]
Regards,Tal
On Tuesday, February 1, 2022, 02:13:24 AM GMT+2, Nathaniel Mitchell ***@***.***> wrote:
Hi @tallu, simply running chipsec_main.py twice, the first time builds the extra .pyc files, then on the subsequent runs it sees them and errors out.
pycprlog.txt
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @tallu If you simply want python to use the cached bytecodes (.pyc) instead of using the source (.py), this is done automatically when .pyc files are present and this patch is not needed. |
No description provided.