sites path with use

This commit is contained in:
Pratik Vyas 2014-03-06 23:41:15 +05:30
parent 32c54e31dc
commit ac82b5ba6e

View file

@ -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