use abspath for bassopus

This commit is contained in:
Headshotnoby 2021-06-16 17:02:07 -04:00
parent de2477d815
commit 61a2c86ca1

View File

@ -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_())