1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-12 19:37:16 +00:00

Add whitelist to SourceCodeEH

This commit is contained in:
Kristóf Tóth 2018-04-05 17:37:38 +02:00
parent b96af45af8
commit 0aea0010c8

View File

@ -43,7 +43,7 @@ toggle_next.button_state = False
if __name__ == '__main__':
# pylint: disable=invalid-name
ide = SourceCodeEventHandler(key='webide', directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
ide = SourceCodeEventHandler(key='webide', allowed_directories=[TFWENV.WEBIDE_WD], directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
terminado.historymonitor.subscribe_callback(cenator)
terminado.historymonitor.subscribe_callback(selectdir)