Skip to content

Commit

Permalink
Windows: Fix, uninstalled self compiled Python didn't have proper pre…
Browse files Browse the repository at this point in the history
…fix added.
  • Loading branch information
kayhayen committed May 14, 2024
1 parent bb7a385 commit 9e64ad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nuitka/freezer/DllDependenciesWin32.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from nuitka.containers.OrderedSets import OrderedSet
from nuitka.Options import isShowProgress
from nuitka.plugins.Plugins import Plugins
from nuitka.PythonVersions import getSystemPrefixPath
from nuitka.Tracing import inclusion_logger
from nuitka.utils.AppDirs import getCacheDir
from nuitka.utils.FileOperations import (
Expand Down Expand Up @@ -99,7 +100,7 @@ def _getScanDirectories(package_name, original_dir):
if cache_key in _scan_dir_cache:
return _scan_dir_cache[cache_key]

scan_dirs = [sys.prefix]
scan_dirs = [getSystemPrefixPath()]

if package_name is not None:
scan_dirs.extend(getPackageSpecificDLLDirectories(package_name))
Expand Down

0 comments on commit 9e64ad8

Please sign in to comment.