Skip to content

Commit

Permalink
Add environment variable to check
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Mar 14, 2019
1 parent a1ed047 commit af74434
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyter_vscode_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ def _get_vscode_cmd(port):
if not shutil.which(executable):
raise FileNotFoundError('Can not find code-server in PATH')

working_dir = os.getenv("REPO_DIR", ".")
working_dir = os.getenv("CODE_WORKINGDIR", None)
if working_dir is None:
working_dir = os.getenv("REPO_DIR", ".")

cmd = [
executable,
Expand Down
4 changes: 4 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

export CODE_WORKINGDIR=${REPO_DIR}/examples
exec "$@"

0 comments on commit af74434

Please sign in to comment.