diff --git a/AO2XP.py b/AO2XP.py index 5179b19..8082520 100644 --- a/AO2XP.py +++ b/AO2XP.py @@ -1,15 +1,15 @@ import sys, thread, time, os, platform -from os.path import exists +from os.path import exists, abspath from PyQt4 import QtGui, QtCore app = QtGui.QApplication(sys.argv) osname = platform.system() bassdll = "bass.dll" -bassopusplugin = "bassopus" +bassopusplugin = "bassopus.dll" if osname != "Windows": bassdll = "libbass.so" - bassopusplugin = "./libbassopus.so" + bassopusplugin = "libbassopus.so" path = sys.argv[0] if osname == "Darwin" and ".app" in path: # bundle @@ -76,7 +76,7 @@ from pybass import * import gameview, mainmenu, options, ini BASS_Init(ini.read_ini_int("AO2XP.ini", "Audio", "device", -1), 44100, 0, 0, 0) -BASS_PluginLoad(bassopusplugin, 0) +BASS_PluginLoad(abspath(bassopusplugin), 0) shit = gamewindow() shit.show() sys.exit(app.exec_())