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 22, 2024
1 parent 16a99c2 commit 0b42026
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 @@ -463,13 +463,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 @@ -478,7 +481,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 0b42026

Please sign in to comment.