Merge 192.168.1.79:github/yap-6.3
This commit is contained in:
16
packages/python/yap_kernel/#yap_kernel_launcher.py#
Normal file
16
packages/python/yap_kernel/#yap_kernel_launcher.py#
Normal file
@@ -0,0 +1,16 @@
|
||||
"""Entry point for launching an YAP kernel.
|
||||
|
||||
This is separate from the yap_kernel package so we can avoid doing imports until
|
||||
after removing the cwd from sys.path.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Remove the CWD from sys.path while we load stuff.
|
||||
# This is added back by InteractiveShellApp.init_path()
|
||||
if sys.path[0] == '':
|
||||
del sys.path[0]
|
||||
|
||||
from yap_kernel import kernelapp as app
|
||||
app.launch_new_instance()
|
||||
Reference in New Issue
Block a user