Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 91a7d31

Browse files
committed
rm
1 parent 8a42b28 commit 91a7d31

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.actions/assistant.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
PATH_REQ_DEFAULT = os.path.join(_PATH_ROOT, "requirements", "default.txt")
2121
PATH_SCRIPT_RENDER = os.path.join(_PATH_HERE, "_ipynb-render.sh")
2222
PATH_SCRIPT_TEST = os.path.join(_PATH_HERE, "_ipynb-test.sh")
23-
UNZIP_PROGRESS_BAR = " | awk 'BEGIN {ORS=" "} {if(NR%10==0)print \".\"}'"
23+
# https://askubuntu.com/questions/909918/how-to-show-unzip-progress
24+
UNZIP_PROGRESS_BAR = " | awk 'BEGIN {ORS=\" \"} {if(NR%10==0)print \".\"}'"
2425
REPO_NAME = "lightning-tutorials"
2526
COLAB_REPO_LINK = "https://colab.research.google.com/github/PytorchLightning"
2627
BRANCH_DEFAULT = "main"
@@ -360,9 +361,11 @@ def bash_test(folder: str, output_file: str = PATH_SCRIPT_TEST) -> Optional[str]
360361
ipynb_file, meta_file, _ = AssistantCLI._valid_folder(folder, ext=".ipynb")
361362

362363
# prepare isolated environment with inheriting the global packages
364+
path_venv = os.path.join(folder, 'venv')
363365
cmd += [
364-
f"python -m virtualenv --system-site-packages {os.path.join(folder, 'venv')}",
365-
f"source {os.path.join(folder, 'venv', 'bin', 'activate')}",
366+
f"rm -rf {path_venv}",
367+
f"python -m virtualenv --system-site-packages {path_venv}",
368+
f"source {os.path.join(path_venv, 'bin', 'activate')}",
366369
"pip --version",
367370
]
368371

0 commit comments

Comments
 (0)