From 45b17a8d5bb2544711d9bb6750becbd3988f1d36 Mon Sep 17 00:00:00 2001 From: Etoh Date: Mon, 14 Oct 2013 10:28:26 +0100 Subject: [PATCH] Improved MPC expandedpath --- syncplay/players/mpc.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/syncplay/players/mpc.py b/syncplay/players/mpc.py index b61d00f..8c703b2 100644 --- a/syncplay/players/mpc.py +++ b/syncplay/players/mpc.py @@ -477,9 +477,15 @@ class MPCHCAPIPlayer(BasePlayer): if(os.path.isfile(path)): 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 + u"mpc-hc.exe")): + path += u"mpc-hc.exe" + return path if(os.path.isfile(path + u"\\mpc-hc.exe")): path += u"\\mpc-hc.exe" return path + if(os.path.isfile(path + u"mpc-hc64.exe")): + path += u"mpc-hc64.exe" + return path if(os.path.isfile(path + u"\\mpc-hc64.exe")): path += u"\\mpc-hc64.exe" - return path \ No newline at end of file + return path