Skip to content

Commit fa77055

Browse files
committed
Fix flet create crashes with an empty project name
1 parent 29f2c19 commit fa77055

File tree

1 file changed

+4
-3
lines changed
  • sdk/python/packages/flet/src/flet/cli/commands

1 file changed

+4
-3
lines changed

sdk/python/packages/flet/src/flet/cli/commands/create.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ def handle(self, options: argparse.Namespace) -> None:
6565
defaults=True,
6666
) as worker:
6767
worker.run_copy()
68-
print(Fore.LIGHTGREEN_EX + "\nDone. Now run:\n")
68+
print(Fore.LIGHTGREEN_EX + "Done. Now run:")
6969
print(Style.RESET_ALL)
70-
print(Fore.CYAN + "cd", end=" ")
71-
print(Fore.WHITE + project_name, end="\n")
70+
if options.output_directory != ".":
71+
print(Fore.CYAN + "cd", end=" ")
72+
print(Fore.WHITE + project_name, end="\n")
7273
print(Fore.CYAN + "flet run")
7374
print(Style.RESET_ALL)

0 commit comments

Comments
 (0)