mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
handle empty but defined SHELL env
Sometimes SHELL can be '', which should be treated the same as undefined.
This commit is contained in:
parent
44ae68da77
commit
95089fa22c
@ -13,7 +13,7 @@ from .handlers import TerminalHandler, TermSocket
|
||||
from . import api_handlers
|
||||
|
||||
def initialize(webapp):
|
||||
shell = os.environ.get('SHELL', 'sh')
|
||||
shell = os.environ.get('SHELL') or 'sh'
|
||||
terminal_manager = webapp.settings['terminal_manager'] = NamedTermManager(shell_command=[shell])
|
||||
terminal_manager.log = app_log
|
||||
base_url = webapp.settings['base_url']
|
||||
|
Loading…
Reference in New Issue
Block a user