Skip to content

Commit be5d1bf

Browse files
authored
Handle systems with python3 (#362)
Fixes #317
1 parent cb888f3 commit be5d1bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jupyterlab_server/process_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_command(self):
2020
"""Get the command and kwargs to run with `Process`.
2121
This is intended to be overridden.
2222
"""
23-
return ["python", "--version"], {}
23+
return [sys.executable, "--version"], {}
2424

2525
def initialize_settings(self):
2626
"""Start the application."""

tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def test_which():
12-
assert which("python")
12+
assert which("jupyter")
1313

1414

1515
async def test_process():

0 commit comments

Comments
 (0)