Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
danimtb committed Jul 12, 2024
1 parent 6a6653c commit 9e48119
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/hooks/_hook_copy_pdbs_to_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
from io import StringIO
from conan.errors import ConanException
from conans.util.env import get_env


def post_package(conanfile):
Expand All @@ -19,7 +18,7 @@ def post_package(conanfile):
# Find dumpbin path
output = StringIO()
try:
program_files = get_env("ProgramFiles(x86)") or get_env("ProgramFiles")
program_files = os.environ.get("ProgramFiles(x86)") or os.environ.get("ProgramFiles") # fallback for 32-bit windows
conanfile.run(
rf'"{program_files}\Microsoft Visual Studio\Installer\vswhere.exe" -find "**\dumpbin.exe" -format json',
stdout=output, scope="")
Expand Down

0 comments on commit 9e48119

Please sign in to comment.