Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca0e4b2

Browse files
chore: start command renames .env_demo file
1 parent 6f3ad93 commit ca0e4b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythoncms/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@ def start(name):
6262
trycopytree(str(path.parent.absolute()), dest)
6363
tryrmfile(dest + "/cli.py")
6464
trymkfile(dest + "/requirements.txt", reqs)
65+
try:
66+
os.rename('.env_demo', '.env')
67+
except Exception as e:
68+
print(e)
6569
click.echo(f"🍭 Pythoncms project {name} is ready to go!")

0 commit comments

Comments
 (0)