Improved MPC expandedpath
This commit is contained in:
parent
3f588d3b36
commit
45b17a8d5b
@ -477,9 +477,15 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
if(os.path.isfile(path)):
|
if(os.path.isfile(path)):
|
||||||
if(path.lower().endswith(u'mpc-hc.exe'.lower()) or path.lower().endswith(u'mpc-hc64.exe'.lower())):
|
if(path.lower().endswith(u'mpc-hc.exe'.lower()) or path.lower().endswith(u'mpc-hc64.exe'.lower())):
|
||||||
return path
|
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")):
|
if(os.path.isfile(path + u"\\mpc-hc.exe")):
|
||||||
path += u"\\mpc-hc.exe"
|
path += u"\\mpc-hc.exe"
|
||||||
return path
|
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")):
|
if(os.path.isfile(path + u"\\mpc-hc64.exe")):
|
||||||
path += u"\\mpc-hc64.exe"
|
path += u"\\mpc-hc64.exe"
|
||||||
return path
|
return path
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user