Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and marcelotduarte committed Mar 17, 2024
1 parent 205ff79 commit 7937c1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cx_Freeze/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,16 @@ def _load_module_code(
module.hook(self)

import threading

if module.code is not None:
if self.replace_paths:
module.code = self._replace_paths_in_code(module)

# Scan the module code for import statements
# self._scan_code(module, deferred_imports)
thr = threading.Thread(target=self._scan_code, args=(module, deferred_imports))
thr = threading.Thread(
target=self._scan_code, args=(module, deferred_imports)
)
thr.start()
thr.join()

Expand All @@ -470,7 +473,10 @@ def _load_module_code(

elif module.stub_code is not None:
# self._scan_code(module, deferred_imports, module.stub_code)
thr = threading.Thread(target=self._scan_code, args=(module, deferred_imports, module.stub_code))
thr = threading.Thread(
target=self._scan_code,
args=(module, deferred_imports, module.stub_code),
)
thr.start()
thr.join()

Expand Down

0 comments on commit 7937c1d

Please sign in to comment.