From ac82b5ba6eb21ed6305bf539f0ced8fcd5bcd711 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 6 Mar 2014 23:41:15 +0530 Subject: [PATCH] sites path with use --- frappe/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/cli.py b/frappe/cli.py index fb9e85c925..ce46599cdf 100755 --- a/frappe/cli.py +++ b/frappe/cli.py @@ -242,8 +242,8 @@ def make_app(): make_boilerplate() @cmd -def use(): - with open("currentsite.txt", "w") as sitefile: +def use(sites_path): + with open(os.path.join(sites_path, "currentsite.txt"), "w") as sitefile: sitefile.write(frappe.local.site) # install