do not look for stencila if binder dir found

pull/457/head
nuest 2018-10-30 09:02:47 +01:00
rodzic 9624f0f161
commit 8342fbd1c0
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -271,6 +271,10 @@ class BuildPack:
# ${STENCILA_ARCHIVE_DIR}/${STENCILA_ARCHIVE}/manifest.xml
self._stencila_manifest_dir = None
if os.path.exists('binder'):
return self._stencila_manifest_dir
for root, dirs, files in os.walk("."):
if "manifest.xml" in files:
self.log.debug("Found a manifest.xml at %s", root)
@ -291,6 +295,10 @@ class BuildPack:
# look at the content of the jats.xml file to extract the required execution contexts
self._stencila_manifest_contexts = None
if os.path.exists('binder'):
return self._stencila_manifest_contexts
for root, dirs, files in os.walk("."):
for filename in files:
if filename.endswith(".test.jats.xml"):