зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1073698 - mozversion should accept binary_path without .exe extension on windows;r=davehunt
This commit is contained in:
Родитель
a0756ffd68
Коммит
57cbb9dd21
|
@ -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',
|
||||
|
|
Загрузка…
Ссылка в новой задаче