diff --git a/.github/workflows/ansys_lab.yml b/.github/workflows/ansys_lab.yml index f3945719ed..1d66c6383f 100644 --- a/.github/workflows/ansys_lab.yml +++ b/.github/workflows/ansys_lab.yml @@ -34,7 +34,7 @@ jobs: import glob import os - for example in glob.glob('**/*.ipynb'): + for example in glob.glob('**/*.ipynb', recursive=True): os.remove(example) print(f"Deleted {example}") @@ -61,7 +61,7 @@ jobs: print(os.listdir(os.getcwd())) for folder in os.listdir(os.path.join(os.getcwd(), "_downloads")): print(os.listdir(os.path.join(os.path.join(os.getcwd(), "_downloads"), folder))) - for example in glob.glob('**/*.ipynb'): + for example in glob.glob('**/*.ipynb', recursive=True): print(f"Moving {example}") shutil.move(example, os.path.join(os.getcwd(), "examples")) print(os.listdir(os.path.join(os.getcwd(), "examples")))