You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 line
533 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import frappe, os
  5. from frappe.core.page.data_import_tool.data_import_tool import import_doclist
  6. def sync_fixtures():
  7. for app in frappe.get_installed_apps():
  8. if os.path.exists(frappe.get_app_path(app, "fixtures")):
  9. for fname in os.listdir(frappe.get_app_path(app, "fixtures")):
  10. if fname.endswith(".json"):
  11. import_doclist(frappe.get_app_path(app, "fixtures", fname))