Bug 1073698 - mozversion should accept binary_path without .exe extension on windows;r=davehunt

This commit is contained in:
William Lachance 2014-09-29 14:49:49 -04:00
Родитель a0756ffd68
Коммит 57cbb9dd21
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -93,7 +93,11 @@ class LocalVersion(Version):
if binary:
if not os.path.exists(binary):
raise IOError('Binary path does not exist: %s' % binary)
# on windows we should also try extending the binary path with
# .exe and see if that's valid
if (sys.platform == 'win32' and not binary.endswith('.exe') and
not os.path.exists(binary + '.exe')):
raise IOError('Binary path does not exist: %s' % binary)
path = find_location(os.path.dirname(os.path.realpath(binary)))
else:
path = find_location(os.getcwd())

Просмотреть файл

@ -4,7 +4,7 @@
from setuptools import setup
PACKAGE_VERSION = '0.7'
PACKAGE_VERSION = '0.8'
dependencies = ['mozdevice >= 0.29',
'mozfile >= 1.0',