summaryrefslogtreecommitdiff
path: root/src/ukify/ukify.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ukify/ukify.py')
-rwxr-xr-xsrc/ukify/ukify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index d4772d2bae..83423fc720 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -20,7 +20,6 @@ import subprocess
import tempfile
import typing
-import pefile
__version__ = '{{GIT_VERSION}}'
@@ -66,6 +65,8 @@ def shell_join(cmd):
def pe_executable_size(filename):
+ import pefile
+
pe = pefile.PE(filename)
section = pe.sections[-1]
return section.VirtualAddress + section.Misc_VirtualSize