mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
Merge branch 'develop' into staging
This commit is contained in:
commit
43a4ac61ab
@ -250,7 +250,7 @@ def get_app_name(bench_path: str, folder_name: str) -> str:
|
||||
if not app_name:
|
||||
# retrieve app name from setup.py as fallback
|
||||
with open(setup_py_path, "rb") as f:
|
||||
app_name = re.search(r'name\s*=\s*[\'"](.*)[\'"]', f.read().decode("utf-8")).group(1)
|
||||
app_name = re.search(r'name\s*=\s*[\'"](.*)[\'"]', f.read().decode("utf-8"))[1]
|
||||
|
||||
if app_name and folder_name != app_name:
|
||||
os.rename(os.path.join(apps_path, folder_name), os.path.join(apps_path, app_name))
|
||||
|
Loading…
Reference in New Issue
Block a user