Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhayen committed Jan 1, 2021
1 parent 2097097 commit 49d3112
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nuitka/utils/SharedLibraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def getPEFileInformation(filename):
import pefile # pylint: disable=I0021,import-error
except ImportError:
# Temporarily add the inline copy of appdir to the import path.
sys.path.append(
sys.path.insert(
0,
os.path.join(
os.path.dirname(__file__), "..", "build", "inline_copy", "pefile"
)
Expand All @@ -236,7 +237,7 @@ def getPEFileInformation(filename):
import pefile # pylint: disable=I0021,import-error

# Do not forget to remove it again.
del sys.path[-1]
del sys.path[0]

pe = pefile.PE(filename)

Expand Down

0 comments on commit 49d3112

Please sign in to comment.