Skip to content

Commit 6dbfe1b

Browse files
authored
Fix pyInstaller compatibility
Added command for multiprocessing to work with pyInstaller on windows systems.
1 parent 976d4bb commit 6dbfe1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DupeFinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import glob
66
import shutil
77
import multiprocessing
8-
8+
import sys
99
import math
1010

1111

@@ -147,7 +147,7 @@ def checker(files, inQ, path):
147147
inQ.put(md5s)
148148

149149
if __name__ == "__main__":
150-
import sys
150+
multiprocessing.freeze_support()
151151
app = QtWidgets.QApplication(sys.argv)
152152
Dialog = QtWidgets.QDialog()
153153
ui = Ui_Dialog()

0 commit comments

Comments
 (0)