Python 3.3 sys.platform change / spelling
This commit is contained in:
parent
8e9f49f4ae
commit
c18cbd1f09
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user