Skip to content

Commit

Permalink
Clean up examples first and move new in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Nov 21, 2023
1 parent 6943489 commit 9d90ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ansys_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand All @@ -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")))
Expand Down

0 comments on commit 9d90ffa

Please sign in to comment.