fix charselect crash on linux
This commit is contained in:
parent
2e6b406ff5
commit
517265f17c
4
AO2XP.py
4
AO2XP.py
@ -9,9 +9,11 @@ import ini
|
||||
__builtin__.audio = AUDIO
|
||||
del AUDIO
|
||||
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
osname = platform.system()
|
||||
|
||||
if osname == "Linux": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads) # Linux fix
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
|
||||
path = sys.argv[0]
|
||||
if osname == "Darwin" and ".app" in path: # bundle
|
||||
path = "/".join(path.split("/")[:-1]) # to Resources folder
|
||||
|
Loading…
Reference in New Issue
Block a user