Commit 1a9bb69
committed
👌 Simplify
We were using `{{ _copier_conf.dst_path | basename }}` for the default of `plugin_name`
variable. However, this has several issues:
1. When the user tries to copy the template in the current directory (`.`), the `.` also
shows up as the default.
1. The `dst_path` may be a temporary directory when updating projects. This might be
an issue down the line.
Turns out `copier` defines a global variable `_folder_name` that gives the name of the
(generated) project root directory. This means the default can be simplified, and we
don't face the issues described above.plugin_name default value1 parent d6f2ad2 commit 1a9bb69
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments