2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +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:
Ameya Shenoy 2018-09-19 15:16:58 +05:30
parent 2e7619c128
commit e4e054e840
No known key found for this signature in database
GPG Key ID: AC016A555657D0A3

View File

@ -196,7 +196,7 @@ def remove_app(app, bench_path='.'):
print("Cannot remove, app is installed on site: {0}".format(site))
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)
shutil.rmtree(app_path)
run_frappe_cmd("build", bench_path=bench_path)