Skip to content

Commit

Permalink
Fix MfciPolicy.py syntax error (#606)
Browse files Browse the repository at this point in the history
## Description

Fix a syntax error in MfciPolicy.py while using pyinstaller to generate
executable file.

![image](https://github.com/user-attachments/assets/2c3fec6b-1732-4860-b52b-c86740cbfb2e)


For details on how to complete these options and their meaning refer to
[CONTRIBUTING.md](https://github.com/microsoft/mu/blob/HEAD/CONTRIBUTING.md).

- [x] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

Verified the MfciPolicy.exe can be generated by pyinstaller
successfully.
Verified the system info can be dumped as below

![image](https://github.com/user-attachments/assets/0ef74028-28c0-4408-8b8a-b88b4ff5dedb)


## Integration Instructions

N/A
  • Loading branch information
MarcChen46 authored Oct 30, 2024
1 parent 5ce0d6a commit cda7aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MfciPkg/Application/MfciPolicy/MfciPolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_system_info():
if Variable == "NextMfciPolicyNonce" or Variable == "CurrentMfciPolicyNonce":
print(f" {Variable} = {hex(int.from_bytes(data, byteorder='little', signed=False))}")
else:
print(f" {Variable} = \"{data.decode("utf16")[0:-1]}\"")
print(f" {Variable} = '{data.decode('utf16')[0:-1]}'")
return


Expand Down

0 comments on commit cda7aec

Please sign in to comment.