kopia lustrzana https://github.com/jupyterhub/repo2docker
repo-path verifies conda prefix
rodzic
9b7618cb79
commit
186e1bbc5d
|
@ -2,8 +2,10 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# Python should still be in /srv/conda
|
# conda should still be in /srv/conda
|
||||||
assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python')
|
# and Python should still be in $NB_PYTHON_PREFIX
|
||||||
|
assert sys.executable == os.path.join(os.environ['NB_PYTHON_PREFIX'], 'bin', 'python'), sys.executable
|
||||||
|
assert sys.executable.startswith("/srv/conda/"), sys.executable
|
||||||
|
|
||||||
# Repo should be in /srv/repo
|
# Repo should be in /srv/repo
|
||||||
assert os.path.exists('/srv/repo/verify')
|
assert os.path.exists('/srv/repo/verify')
|
||||||
|
|
Ładowanie…
Reference in New Issue