Fix problem with ignoring --shell option in python2

This commit is contained in:
Stanislav Ivanov
2017-09-21 18:04:03 +03:00
parent ef0057c23f
commit b5de82bfcf

View File

@@ -264,7 +264,7 @@ class Terminal(object):
args = ['/bin/su']
args.append('-l')
if sys.platform == 'linux' and tornado.options.options.shell:
if sys.platform.startswith('linux') and tornado.options.options.shell:
args.append('-s')
args.append(tornado.options.options.shell)
args.append(self.callee.name)