Skip to content

Commit 66b4e4f

Browse files
committed
delete requirements/ if alt setup is selected
1 parent 10f7b25 commit 66b4e4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

init_template.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
PYPROJECT_TARGET = Path("pyproject.toml")
1919
README_TARGET = Path("README.md")
2020
ALT_FILE_DIR = Path("alt_files")
21+
REQUIREMENTS_DIR = Path("requirements")
2122
ORG = "Preocts"
2223
REPO = r"python\-src\-template"
2324

@@ -77,6 +78,11 @@ def select_project_type() -> None:
7778
for file in ALT_FILE_DIR.iterdir():
7879
file.replace(file.name)
7980

81+
# Remove requirements directory and all contents
82+
for file in REQUIREMENTS_DIR.iterdir():
83+
os.remove(file)
84+
os.rmdir(REQUIREMENTS_DIR)
85+
8086
# Remove alt_files directory and all contents
8187
for file in ALT_FILE_DIR.iterdir():
8288
os.remove(file)

0 commit comments

Comments
 (0)