[fix] Scrub app_name
This commit is contained in:
parent
3c5bd01d3c
commit
e23f4a435d
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ def make_boilerplate(dest, app_name):
|
|||
print "Destination directory does not exist"
|
||||
return
|
||||
|
||||
# app_name should be in snake_case
|
||||
app_name = frappe.scrub(app_name)
|
||||
|
||||
hooks = frappe._dict()
|
||||
hooks.app_name = app_name
|
||||
app_title = hooks.app_name.replace("_", " ").title()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue