mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix(remove_app): use app name instead of app path
pip 18 does not allow path to repo, instead we use the app name Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
2e7619c128
commit
e4e054e840
@ -196,7 +196,7 @@ def remove_app(app, bench_path='.'):
|
|||||||
print("Cannot remove, app is installed on site: {0}".format(site))
|
print("Cannot remove, app is installed on site: {0}".format(site))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
exec_cmd(["{0} uninstall -y {1}".format(pip, app_path)])
|
exec_cmd(["{0} uninstall -y {1}".format(pip, app)])
|
||||||
remove_from_appstxt(app, bench_path)
|
remove_from_appstxt(app, bench_path)
|
||||||
shutil.rmtree(app_path)
|
shutil.rmtree(app_path)
|
||||||
run_frappe_cmd("build", bench_path=bench_path)
|
run_frappe_cmd("build", bench_path=bench_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user