diff --git a/Syncplay 1.2.6 Setup.exe b/Syncplay 1.2.6 Setup.exe new file mode 100644 index 0000000..5f929e3 Binary files /dev/null and b/Syncplay 1.2.6 Setup.exe differ diff --git a/buildPy2exe.py b/buildPy2exe.py index aa24308..4b17133 100644 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -533,7 +533,7 @@ info = dict( 'packages': 'PySide.QtUiTools', 'includes': 'twisted, sys, encodings, datetime, os, time, math, PySide', 'excludes': 'venv, _ssl, doctest, pdb, unittest, win32clipboard, win32file, win32pdh, win32security, win32trace, win32ui, winxpgui, win32pipe, win32process', - 'dll_excludes': 'msvcr71.dll, MSVCP90.dll', + 'dll_excludes': 'msvcr71.dll, MSVCP90.dll, POWRPROF.dll', 'optimize': 2, 'compressed': 1 } diff --git a/syncplay/players/mpc.py b/syncplay/players/mpc.py index 9bc9c39..991b07c 100644 --- a/syncplay/players/mpc.py +++ b/syncplay/players/mpc.py @@ -472,11 +472,11 @@ class MPCHCAPIPlayer(BasePlayer): @staticmethod def getExpandedPath(path): if(os.path.isfile(path)): - if(path[-10:] == 'mpc-hc.exe' or path[-12:] == 'mpc-hc64.exe'): + if(path.lower().endswith(u'mpc-hc.exe'.lower()) or path.lower().endswith(u'mpc-hc64.exe'.lower())): return path - if(os.path.isfile(path + "\\mpc-hc.exe")): - path += "\\mpc-hc.exe" + if(os.path.isfile(path + u"\\mpc-hc.exe")): + path += u"\\mpc-hc.exe" return path - if(os.path.isfile(path + "\\mpc-hc64.exe")): - path += "\\mpc-hc64.exe" + if(os.path.isfile(path + u"\\mpc-hc64.exe")): + path += u"\\mpc-hc64.exe" return path \ No newline at end of file