|
|
@@ -488,6 +488,8 @@ frappe.db.connect() |
|
|
|
@pass_context |
|
|
|
def console(context): |
|
|
|
"Start ipython console for a site" |
|
|
|
import warnings |
|
|
|
|
|
|
|
site = get_site(context) |
|
|
|
frappe.init(site=site) |
|
|
|
frappe.connect() |
|
|
@@ -508,6 +510,7 @@ def console(context): |
|
|
|
if failed_to_import: |
|
|
|
print("\nFailed to import:\n{}".format(", ".join(failed_to_import))) |
|
|
|
|
|
|
|
warnings.simplefilter('ignore') |
|
|
|
IPython.embed(display_banner="", header="", colors="neutral") |
|
|
|
|
|
|
|
|
|
|
|