From 8f725c9fe3bf7926220d3c279228ab7a5858ed9e Mon Sep 17 00:00:00 2001 From: Labanya Mukhopadhyay Date: Wed, 30 Mar 2022 11:41:34 -0700 Subject: [PATCH] FIX-#464: Remove sh dependency (#469) * FIX-#464: Remove sh dependency Signed-off-by: Labanya Mukhopadhyay * remove subprocess sh in conf Signed-off-by: Labanya Mukhopadhyay * fixing black pre commit error Signed-off-by: Labanya Mukhopadhyay * Update requirements.txt Co-authored-by: Doris Lee --- doc/conf.py | 6 +++--- requirements.txt | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index cafb3786..6846ec33 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,16 +18,16 @@ # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html -import subprocess -subprocess.call(["sh", "./docbuild.sh"]) +import os + +os.system("sh ./docbuild.sh") # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os import sys sys.path.insert(0, os.path.abspath("..")) diff --git a/requirements.txt b/requirements.txt index 5c144bb5..c199b6ca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,3 @@ lux-widget>=0.1.4 autopep8>=1.5 iso3166 psutil>=5.9.0 -sh