def build_docs ( directory ) : os . chdir ( directory ) process = subprocess . Popen ( [ "make" , "html" ] , cwd = directory ) process . communicate ( )
python program to print document in a specific folder
Builds sphinx docs from a given directory .
def build_docs(directory):
    """Builds sphinx docs from a given directory."""
    os.chdir(directory)
    process = subprocess.Popen(["make", "html"], cwd=directory)
    process.communicate()