Skip to content

Commit

Permalink
Modulegraph: Reorder hook-dir search pattern. See pyinstaller#4806
Browse files Browse the repository at this point in the history
  • Loading branch information
Legorooj committed May 11, 2020
1 parent 3510886 commit 7cf7467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyInstaller/depend/analysis.py
Expand Up @@ -126,7 +126,7 @@ def _reset(self, user_hook_dirs):
self._additional_files_cache = AdditionalFilesCache()
# Prepend PyInstaller hook dir to user hook dirs.
self._user_hook_dirs = (
[os.path.join(PACKAGEPATH, 'hooks')] + list(user_hook_dirs)
list(user_hook_dirs) + [os.path.join(PACKAGEPATH, 'hooks')]
)
# Hook-specific lookup tables.
# These need to reset when reusing cached PyiModuleGraph to avoid
Expand Down

0 comments on commit 7cf7467

Please sign in to comment.