Skip to content

Commit

Permalink
move multiprocessing freeze to the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Oct 17, 2022
1 parent d760ec3 commit 57a297b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
from ctypes import windll


multiprocessing.freeze_support()
tiff_lock = multiprocessing.Lock()
mask_lock = multiprocessing.Lock()


PORT = 2020

FORMATTER = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
Expand Down Expand Up @@ -1824,12 +1829,7 @@ def close_import_pool():
def open_browser():
webbrowser.open_new("http://127.0.0.1:" + str(PORT) + "/")


G = reset_globals()
multiprocessing.freeze_support()
tiff_lock = multiprocessing.Lock()
mask_lock = multiprocessing.Lock()


if __name__ == "__main__":

Expand Down

0 comments on commit 57a297b

Please sign in to comment.