Skip to content

Commit dea57f7

Browse files
committed
Pass all arguments to _xpython_launch
1 parent 3c61416 commit dea57f7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

xpython_launcher.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
if __name__ == '__main__':
2-
def _xpython_get_connection_filename():
3-
import argparse
4-
parser = argparse.ArgumentParser()
5-
parser.add_argument('-f', help='Jupyter kernel connection filename')
6-
args, unknown = parser.parse_known_args()
7-
return args.f
8-
2+
import sys
93
from xpython import launch as _xpython_launch
10-
_xpython_launch(_xpython_get_connection_filename() or '')
4+
args_list = sys.argv[:]
5+
sys.argv = sys.argv[:1] # Remove unnecessary arguments
6+
_xpython_launch(args_list)

0 commit comments

Comments
 (0)