Python 3.3 sys.platform change / spelling

This commit is contained in:
Sam Manzi 2016-09-25 08:28:40 +10:00
parent 8e9f49f4ae
commit c18cbd1f09
No known key found for this signature in database
GPG Key ID: F4A16068AE36B402

View File

@ -42,7 +42,7 @@ SPHINXBUILD = 'sphinx-build'
if sys.platform == 'win32': if sys.platform == 'win32':
pythonCmd = os.path.join(sys.prefix, 'bin', 'python.exe') pythonCmd = os.path.join(sys.prefix, 'bin', 'python.exe')
sphinxCmd = os.path.join(sys.prefix, 'bin', 'sphinx-build.exe') sphinxCmd = os.path.join(sys.prefix, 'bin', 'sphinx-build.exe')
elif sys.platform in ['linux2', 'darwin', 'cygwin']: elif sys.platform in ['linux', 'linux2', 'darwin', 'cygwin']:
pythonCmd = os.path.join(sys.prefix, 'bin', 'python') pythonCmd = os.path.join(sys.prefix, 'bin', 'python')
sphinxCmd = SPHINXBUILD sphinxCmd = SPHINXBUILD
else: else:
@ -62,7 +62,7 @@ def tests():
print ('Please, install python') print ('Please, install python')
try: try:
print("\n=================='Shpinx-build'=============================\n") print("\n=================='sphinx-build'=============================\n")
os.system('''%(program)s''' % {'program': sphinxCmd}) os.system('''%(program)s''' % {'program': sphinxCmd})
except: except:
print ('Please, install sphinx') print ('Please, install sphinx')