Skip to content

Commit

Permalink
Windows support finally hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
natis1 committed May 2, 2020
1 parent eae1b5d commit 04fbae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import os

#baseUIClass, baseUIWidget = uic.loadUiType("mainwindow.ui")
print('__name__', __name__)

class window(QMainWindow, Ui_MainWindow):
twopassState = True
Expand Down Expand Up @@ -462,6 +461,8 @@ def runProcessing(dictargs, pushButton, progressBar, statusLabel):
statusLabel.setText("Encoding complete!")

if __name__ == '__main__':
if sys.platform.startswith('win'):
multiprocessing.freeze_support()
app = QtWidgets.QApplication(sys.argv)
window = window()
window.show()
Expand Down

0 comments on commit 04fbae9

Please sign in to comment.