Skip to content

Commit c9be99b

Browse files
rhttpike3
authored andcommitted
fix: Use .pytemplate for name for cookiecutter
This avoids conda install problem. Fixes #1774
1 parent 79bde5a commit c9be99b

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import glob
2+
import os
3+
4+
file_list = glob.glob('**/*.pytemplate', recursive=True)
5+
6+
for file_path in file_list:
7+
# Check if the file is a regular file
8+
if not os.path.isfile(file_path):
9+
continue
10+
# Rename the file
11+
os.rename(file_path, file_path.replace(".pytemplate", ".py"))

0 commit comments

Comments
 (0)