Skip to content

Commit

Permalink
fixed multiprocessing not working on windows executables
Browse files Browse the repository at this point in the history
  • Loading branch information
9FS committed Nov 9, 2023
1 parent 5906701 commit 578807e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT"
name = "x" # can't leave empty because of bug with `poetry install` from poetry.lock file
readme = "readme.md"
repository = "https://github.com/9-FS/2021-11-15-nHentai-to-PDF"
version = "1.4.6"
version = "1.4.7"

[tool.poetry.dependencies]
kfsconfig = "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kfsconfig==1.0.2 ; python_full_version >= "3.11.0" and python_full_version < "4.
kfsfstr==1.1.0 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
kfslog==1.0.1 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
kfsmath==1.0.1 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
kfsmedia==2.3.1 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
kfsmedia==2.3.2 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
lxml==4.9.3 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
packaging==23.2 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
pebble==5.0.3 ; python_full_version >= "3.11.0" and python_full_version < "4.0.0"
Expand Down
12 changes: 7 additions & 5 deletions src/main_outer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Copyright (c) 2023 구FS, all rights reserved. Subject to the MIT licence in `licence.md`.
if __name__=="__main__":
from KFSlog import KFSlog
import logging
import traceback
from main import main
from KFSlog import KFSlog
import logging
import multiprocessing
import traceback
from main import main


if __name__=="__main__":
multiprocessing.freeze_support() # for multiprocessing to work on windows executables
KFSlog.setup_logging("", logging.INFO)
#KFSlog.setup_logging("", logging.DEBUG, filepath_format="./log/%Y-%m-%dT%H_%M.log", rotate_filepath_when="M")

Expand Down

0 comments on commit 578807e

Please sign in to comment.