Skip to content

Commit

Permalink
edk2toolext.capsule: add __init__.py (#628)
Browse files Browse the repository at this point in the history
__init__.py is missing from edk2toolext/capsule, which causes the module
to not be found on local edit installs of the project
(i.e. `pip install -e .`). This commit adds in the expected file.
  • Loading branch information
Javagedes committed Aug 17, 2023
1 parent 2aff6d8 commit 2b4e3f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions edk2toolext/capsule/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##
# Copyright (c) Microsoft Corporation
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
"""This file exists to satisfy pythons packaging requirements.
Read more: https://docs.python.org/3/reference/import.html#regular-packages
"""
1 change: 1 addition & 0 deletions edk2toolext/capsule/capsule_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import sys

import yaml

from edk2toolext.capsule import capsule_helper, signing_helper

TOOL_DESCRIPTION = """
Expand Down
3 changes: 2 additions & 1 deletion edk2toolext/capsule/signing_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

import importlib

from edk2toolext.capsule import signtool_signer
from edk2toollib.utility_functions import import_module_by_file_name

from edk2toolext.capsule import signtool_signer

# Valid types.
PYOPENSSL_SIGNER = 'pyopenssl'
SIGNTOOL_SIGNER = 'signtool'
Expand Down

0 comments on commit 2b4e3f3

Please sign in to comment.