fix no-PREFIX for long window-paths

This commit is contained in:
jmwatte 2015-04-10 09:26:56 +02:00
parent 821c5bf3df
commit 7128340385

View file

@ -193,10 +193,8 @@ class Bs1770gainBackend(Backend):
# workaround for windows MAX_PATH prefix, will get problems
# when path is too long on windows
try:
output = call(cmd + [syspath(i.path) for i in items])
if not output:
output = call(cmd +
[syspath(i.path, prefix=False) for i in items])
output = call(cmd +
[syspath(i.path, prefix=False) for i in items])
except:
self._log.debug(u'bsgain1770 failed')
self._log.debug(u'analysis finished:{0}', output)